Skip to content

Commit f4bd012

Browse files
committed
Updates composer commit message field to match theme
1 parent bf3175a commit f4bd012

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

src/webviews/apps/plus/composer/components/commit-message.ts

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,33 @@ export class CommitMessage extends LitElement {
4848
4949
.commit-message__input {
5050
width: 100%;
51-
padding: 1.2rem 1.6rem;
51+
padding: 0.5rem;
5252
font-family: inherit;
53-
font-size: 1.6rem;
54-
line-height: 1.4;
55-
/* border: 1px solid var(--vscode-input-border); */
56-
/* border-radius: 0.2rem; */
57-
/* background: var(--vscode-input-background); */
58-
border: 1px solid var(--vscode-panel-border);
59-
border-radius: 0.4rem;
60-
background: var(--color-background);
53+
font-size: 1.3rem;
54+
line-height: 2rem;
55+
border: 1px solid var(--vscode-input-border);
56+
border-radius: 0.2rem;
57+
background: var(--vscode-input-background);
6158
color: var(--vscode-input-foreground);
6259
vertical-align: middle;
60+
-webkit-font-smoothing: auto;
61+
}
62+
63+
.commit-message__input:has(~ .commit-message__ai-button) {
64+
padding-right: 3rem;
6365
}
6466
6567
textarea.commit-message__input {
6668
box-sizing: content-box;
67-
width: calc(100% - 3.4rem);
69+
width: calc(100% - 1rem);
6870
resize: vertical;
6971
field-sizing: content;
70-
min-height: 2lh;
71-
max-height: 4lh;
72+
min-height: 1lh;
73+
max-height: 10lh;
74+
resize: none;
75+
}
76+
textarea.commit-message__input:has(~ .commit-message__ai-button) {
77+
width: calc(100% - 3.5rem);
7278
}
7379
7480
.has-explanation {
@@ -78,6 +84,7 @@ export class CommitMessage extends LitElement {
7884
7985
.commit-message__input::placeholder {
8086
color: var(--vscode-input-placeholderForeground);
87+
-webkit-font-smoothing: auto;
8188
}
8289
8390
.commit-message__input[aria-valid='false'] {
@@ -152,8 +159,8 @@ export class CommitMessage extends LitElement {
152159
153160
.commit-message__ai-button {
154161
position: absolute;
155-
top: 0.5rem;
156-
right: 0.5rem;
162+
top: 0.3rem;
163+
right: 0.3rem;
157164
z-index: 1;
158165
}
159166
`,

0 commit comments

Comments
 (0)