Skip to content

Commit 8c5dff0

Browse files
authored
chore: reduce button gap and padding (#194)
* chore: reduce button gap and padding * chore: update color and margins
1 parent 3e1e812 commit 8c5dff0

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

workload/ui/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ <h3>Applications</h3>
6666
</div>
6767
<div class="p-matrix__content">
6868
<h3 class="p-matrix__title">{{name}}</h3>
69-
<div class="" style="display: flex; gap: 0;">
70-
<button class="p-tooltip--btm-center openLinkBtn" id="ui-button" data-link="{{url}}" {{#unless url}}disabled{{/unless}}>
69+
<div style="display: flex;">
70+
<button class="p-tooltip--btm-center openLinkBtn customBtn" id="ui-button" data-link="{{url}}" {{#unless url}}disabled{{/unless}}>
7171
<span class="iconify custom-icon" data-icon="mdi-web"></span>
7272
<span class="p-tooltip__message" role="tooltip" id="default-tooltip">Visit UI</span>
7373
</button>
7474

7575
{{#with this}}
76-
<button class="p-tooltip--btm-center" aria-controls="modal-{{@index}}" {{#unless (hasKeys api_endpoints)}}disabled{{/unless}}>
76+
<button class="p-tooltip--btm-center customBtn" aria-controls="modal-{{@index}}" {{#unless (hasKeys api_endpoints)}}disabled{{/unless}}>
7777
<span class="iconify custom-icon" data-icon="mdi-api"></span>
7878
<span class="p-tooltip__message" role="tooltip">View endpoints</span>
7979
</button>
@@ -95,7 +95,7 @@ <h2 class="p-modal__title" id="modal-title-{{@index}}">API Endpoints for {{name}
9595
{{/getKeys}}
9696
{{/with}}
9797

98-
<button class="p-tooltip--btm-center openLinkBtn" id="docs-button" data-link="{{api_docs}}" {{#unless api_docs}}disabled{{/unless}}>
98+
<button class="p-tooltip--btm-center openLinkBtn customBtn" id="docs-button" data-link="{{api_docs}}" {{#unless api_docs}}disabled{{/unless}}>
9999
<span class="iconify custom-icon" data-icon="mdi-file-document"></span>
100100
<span class="p-tooltip__message" role="tooltip" id="default-tooltip">Read docs</span>
101101
</button>

workload/ui/ui.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,11 @@
1717
}
1818

1919
.custom-icon {
20-
color: #008494;
20+
color: #333;
21+
font-size: 16px;
22+
}
23+
24+
.customBtn {
25+
margin: 8px 0.5em 16px 0px;
26+
padding: 2.7px 12px;
2127
}

0 commit comments

Comments
 (0)