File tree Expand file tree Collapse file tree 1 file changed +20
-10
lines changed Expand file tree Collapse file tree 1 file changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,9 @@ function horizontalScroll(e: WheelEvent) {
132
132
<div
133
133
v-if =" (pending === true && i === files.length - 1) || pending === file"
134
134
class =" file pending"
135
+ :class =" { active: pending === file }"
135
136
>
137
+ <span class =" file pending" >{{ pendingFilename }}</span >
136
138
<input
137
139
v-model =" pendingFilename"
138
140
spellcheck =" false"
@@ -196,6 +198,7 @@ function horizontalScroll(e: WheelEvent) {
196
198
}
197
199
198
200
.file {
201
+ position : relative ;
199
202
display : inline-block ;
200
203
font-size : 13px ;
201
204
font-family : var (--font-code );
@@ -213,18 +216,25 @@ function horizontalScroll(e: WheelEvent) {
213
216
padding : 8px 10px 6px ;
214
217
line-height : 20px ;
215
218
}
219
+ .file.pending span {
220
+ min-width : 50px ;
221
+ min-height : 34px ;
222
+ padding-right : 32px ;
223
+ background-color : rgba (200 , 200 , 200 , 0.2 );
224
+ color : transparent ;
225
+ }
216
226
.file.pending input {
217
- width : 90px ;
218
- height : 30px ;
219
- line-height : 30px ;
220
- outline : none ;
221
- border : 1px solid var (--border );
222
- border-radius : 4px ;
223
- padding : 0 0 0 10px ;
224
- margin-top : 2px ;
225
- margin-left : 6px ;
227
+ position : absolute ;
228
+ inset : 8px 7px auto ;
229
+ font-size : 13px ;
226
230
font-family : var (--font-code );
227
- font-size : 12px ;
231
+ line-height : 20px ;
232
+ outline : none ;
233
+ border : none ;
234
+ padding : 0 3px ;
235
+ min-width : 1px ;
236
+ color : inherit ;
237
+ background-color : transparent ;
228
238
}
229
239
.file .remove {
230
240
display : inline-block ;
You can’t perform that action at this time.
0 commit comments