Skip to content

Commit 32d1cf6

Browse files
mrleemurraymrleemurrayCopilot
authored
Improve button and branch tag styling (#8369)
* Update styling for branch tag and change base button in CSS * Enhance button styles with borders for better visibility * Update webviews/editorWebview/index.css Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update webviews/editorWebview/index.css Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update webviews/common/common.css Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update webviews/common/common.css Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update webviews/common/common.css Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: mrleemurray <lee.murray@microsoft.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 3d7b8ea commit 32d1cf6

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

webviews/common/common.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ input[type='submit']:hover:enabled {
7474
button.secondary {
7575
background-color: var(--vscode-button-secondaryBackground);
7676
color: var(--vscode-button-secondaryForeground);
77+
border-color: var(--vscode-button-border, transparent);
7778
}
7879

7980
button.secondary:hover:enabled,
@@ -141,6 +142,7 @@ input[type='checkbox'] {
141142
body button:disabled,
142143
input[type='submit']:disabled {
143144
opacity: 0.4;
145+
border: 1px solid var(--vscode-button-border, transparent) !important;
144146
}
145147

146148
body .hidden {
@@ -375,6 +377,8 @@ button.split-left {
375377
white-space: nowrap;
376378
text-overflow: ellipsis;
377379
display: flex;
380+
border: 1px solid var(--vscode-button-border, transparent);
381+
border-right: none;
378382
}
379383

380384
.split {
@@ -405,8 +409,9 @@ button.split-right {
405409
cursor: pointer;
406410
width: 24px;
407411
position: relative;
412+
border: 1px solid var(--vscode-button-border, transparent);
413+
border-left: none;
408414
}
409-
410415
button.split-right:disabled {
411416
cursor: default;
412417
}

webviews/editorWebview/index.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,8 @@ body button .icon {
543543
}
544544

545545
.branch-tag {
546-
margin-top: 3px;
547-
padding: 2px 4px;
546+
margin-top: 0;
547+
padding: 4px;
548548
background: var(--vscode-editorInlayHint-background);
549549
color: var(--vscode-editorInlayHint-foreground);
550550
border-radius: 4px;
@@ -582,10 +582,18 @@ small-button {
582582
button.secondary.change-base {
583583
background-color: transparent;
584584
padding: unset;
585+
border-radius: 4px;
586+
margin-top: 2px;
585587
}
586588

587589
.change-base code {
588590
display: flex;
591+
align-items: center;
592+
padding: 2px 4px;
593+
}
594+
595+
.change-base .icon {
596+
margin-left: 4px;
589597
}
590598

591599
:not(.status-item)>.small-button {

0 commit comments

Comments
 (0)