Skip to content

Commit a2b9976

Browse files
Copilotalexr00
andauthored
Keep upload button inside textarea visual area without overlap
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent ec72df9 commit a2b9976

2 files changed

Lines changed: 40 additions & 10 deletions

File tree

webviews/activityBarView/index.css

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,33 @@ textarea {
4444

4545
.textarea-wrapper {
4646
position: relative;
47-
display: flex;
48-
flex-direction: column;
47+
display: block;
4948
width: 100%;
49+
box-sizing: border-box;
50+
border: 1px solid var(--vscode-dropdown-border);
51+
background-color: var(--vscode-input-background);
52+
border-radius: 4px;
53+
padding-bottom: 28px;
54+
}
55+
56+
.textarea-wrapper:focus-within {
57+
outline: 1px solid var(--vscode-focusBorder);
5058
}
5159

5260
.textarea-wrapper textarea {
53-
flex: 1;
61+
display: block;
62+
width: 100%;
63+
box-sizing: border-box;
64+
border: none;
65+
background: transparent;
66+
border-radius: 0;
67+
outline: none;
5468
}
5569

5670
.textarea-wrapper .comment-upload-button {
57-
align-self: flex-start;
58-
margin-top: 4px;
71+
position: absolute;
72+
left: 6px;
73+
bottom: 4px;
5974
border: none;
6075
background: none;
6176
padding: 4px;

webviews/editorWebview/index.css

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,13 +1010,27 @@ textarea {
10101010

10111011
.textarea-wrapper {
10121012
position: relative;
1013-
display: flex;
1014-
flex-direction: column;
1013+
display: block;
10151014
width: 100%;
1015+
box-sizing: border-box;
1016+
border: 1px solid var(--vscode-dropdown-border);
1017+
background-color: var(--vscode-input-background);
1018+
border-radius: 4px;
1019+
padding-bottom: 28px;
1020+
}
1021+
1022+
.textarea-wrapper:focus-within {
1023+
outline: 1px solid var(--vscode-focusBorder);
10161024
}
10171025

10181026
.textarea-wrapper textarea {
1019-
flex: 1;
1027+
display: block;
1028+
width: 100%;
1029+
box-sizing: border-box;
1030+
border: none;
1031+
background: transparent;
1032+
border-radius: 0;
1033+
outline: none;
10201034
padding-right: 40px;
10211035
}
10221036

@@ -1056,8 +1070,9 @@ textarea {
10561070
}
10571071

10581072
.textarea-wrapper .comment-upload-button {
1059-
align-self: flex-start;
1060-
margin-top: 4px;
1073+
position: absolute;
1074+
left: 6px;
1075+
bottom: 4px;
10611076
border: none;
10621077
background: none;
10631078
padding: 4px;

0 commit comments

Comments
 (0)