Skip to content

Commit 886c945

Browse files
committed
made minor style changes to download binary content button based on UX feedback
1 parent 3e47df3 commit 886c945

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

docs/specs/binary-response.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@
1212
"paths" : {
1313
"/{width}/{height}" : {
1414
"get" : {
15+
"tags": ["The Lorem Ipsum for photos"],
1516
"description" : "Return a photo",
1617
"parameters" : [ {
1718
"name" : "width",
1819
"in" : "path",
1920
"description" : "photo width",
2021
"required" : true,
22+
"example": 100,
2123
"schema" : {
2224
"minimum" : 100,
2325
"type" : "integer",
@@ -28,6 +30,7 @@
2830
"in" : "path",
2931
"description" : "photo height",
3032
"required" : true,
33+
"example": 100,
3134
"schema" : {
3235
"minimum" : 100,
3336
"type" : "integer",

src/components/api-request.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,9 +677,9 @@ export default class ApiRequest extends LitElement {
677677
${this.responseIsBlob
678678
? html`
679679
<div class="tab-content col" style="flex:1; display:${this.activeResponseTab === 'response' ? 'flex' : 'none'};">
680-
<button class="m-btn" @click="${this.downloadResponseBlob}">DOWNLOAD</button>
680+
<button class="m-btn thin-border mar-top-8" style="width:135px" @click="${this.downloadResponseBlob}">DOWNLOAD</button>
681681
${this.responseBlobType === 'view'
682-
? html`<button class="m-btn" @click="${this.viewResponseBlob}">VIEW (NEW TAB)</button>`
682+
? html`<button class="m-btn thin-border mar-top-8" style="width:135px" @click="${this.viewResponseBlob}">VIEW (NEW TAB)</button>`
683683
: ''
684684
}
685685
</div>`

src/styles/border-styles.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,8 @@ a { color: var(--blue); }
2020
.pad-top-8{
2121
padding-top: 8px;
2222
}
23+
.mar-top-8{
24+
margin-top: 8px;
25+
}
26+
2327
`;

0 commit comments

Comments
 (0)