Skip to content

Commit df57577

Browse files
committed
Fixes alignments & border-radius issues
1 parent c329894 commit df57577

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

src/webviews/apps/commitDetails/components/commit-action.css.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ export const commitActionStyles = css`
55
display: inline-flex;
66
justify-content: center;
77
align-items: center;
8-
height: 21px;
8+
height: 2rem;
99
border-radius: 0.25em;
1010
color: inherit;
1111
padding: 0.2rem;
12-
vertical-align: text-bottom;
12+
vertical-align: middle;
1313
text-decoration: none;
1414
gap: 0.2rem;
1515
}

src/webviews/apps/shared/components/chips/action-chip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class ActionChip extends LitElement {
5353
justify-content: center;
5454
align-items: center;
5555
gap: 0.2rem;
56-
vertical-align: middle;
56+
/* vertical-align: middle; */
5757
color: inherit;
5858
min-width: 2rem;
5959
height: 2rem;

src/webviews/apps/shared/styles/details-base.scss

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ ul {
143143
border: 1px solid var(--vscode-input-border);
144144
background: var(--vscode-input-background);
145145
padding: 0.5rem;
146-
border-radius: 2px;
146+
border-radius: 0.2rem 0.2rem 0 0;
147147

148148
&__text {
149149
margin: 0;
@@ -177,9 +177,16 @@ ul {
177177
font-size: 1.3rem;
178178
color: var(--color-foreground--65);
179179
background: var(--color-background--level-075);
180-
border-radius: 0 0 0.2rem 0.2rem;
181180
padding: 0.2rem;
182181

182+
&:last-child {
183+
border-radius: 0 0 0.2rem 0.2rem;
184+
}
185+
186+
&:first-of-type:last-child {
187+
border-radius: 0.2rem;
188+
}
189+
183190
gl-action-chip::part(icon),
184191
gl-autolink-chip::part(icon),
185192
gl-commit-date,

0 commit comments

Comments
 (0)