File tree Expand file tree Collapse file tree 3 files changed +43
-24
lines changed Expand file tree Collapse file tree 3 files changed +43
-24
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ watchEffect(() => {
226
226
227
227
<style lang="scss">
228
228
.derivate-pane {
229
- width : 25 em ;
229
+ width : 28 em ;
230
230
s-tab {
231
231
background-color : var (--s-color-surface-container-low );
232
232
border-top-left-radius : 3px ;
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" filled-textfield" :class =" { focus: isFocus }" >
3
- <label :class =" { lifted: !isEmpty }" class =" function-label" >
4
- <component v-for =" item in labelContent" :is =" item" ></component >
5
- </label >
6
- <input
7
- @focus =" isFocus = true"
8
- @blur =" isFocus = false"
9
- type =" text"
10
- v-model =" value"
11
- ref =" inputRef"
12
- />
3
+ <div class =" filled-textfield-inner" >
4
+ <label :class =" { lifted: !isEmpty }" class =" function-label" >
5
+ <component v-for =" item in labelContent" :is =" item" ></component >
6
+ </label >
7
+ <input
8
+ @focus =" isFocus = true"
9
+ @blur =" isFocus = false"
10
+ type =" text"
11
+ v-model =" value"
12
+ ref =" inputRef"
13
+ />
14
+ </div >
13
15
</div >
14
16
</template >
15
17
@@ -68,39 +70,55 @@ const labelContent = computed(() =>
68
70
background-color 0.2s ,
69
71
border-bottom-color 0.2s ;
70
72
padding : 0 ;
71
- display : flex ;
72
73
font-family : var (--font-math );
73
- position : relative ;
74
+ overflow-x : scroll ;
75
+ cursor : text ;
74
76
& .focus {
75
77
background-color : var (--s-color-surface-container-highest );
76
78
border-bottom-color : var (--s-color-primary );
77
79
}
80
+ & ::-webkit-scrollbar {
81
+ width : 0 ;
82
+ height : 0 ;
83
+ background : transparent ;
84
+ }
85
+ .filled-textfield-inner {
86
+ width : fit-content ;
87
+ position : relative ;
88
+ min-width : 100% ;
89
+ overflow-y : hidden ;
90
+ }
91
+ .filled-textfield-inner ::-webkit-scrollbar {
92
+ display : none ;
93
+ height : 0 ;
94
+ width : 0 ;
95
+ }
96
+ label {
97
+ color : var (--s-color-outline );
98
+ white-space : pre ;
99
+ width : fit-content ;
100
+ }
78
101
input {
79
102
background-color : transparent ;
80
103
border : none ;
81
104
outline : none ;
82
105
font-size : inherit ;
83
106
font-family : inherit ;
84
- display : block ;
85
- width : 0 ;
86
- flex-grow : 1 ;
87
107
caret-color : var (--s-color-primary );
88
- z-index : 1 ;
89
108
color : transparent ;
90
- }
91
- label {
92
- display : block ;
93
- color : var (--s-color-outline );
94
109
position : absolute ;
95
- white-space : pre ;
96
- max-width : 100% ;
110
+ top : 0 ;
111
+ left : 0 ;
112
+ bottom : 0 ;
113
+ width : 100% ;
97
114
box-sizing : border-box ;
98
115
}
116
+
99
117
input ,
100
118
label {
119
+ display : block ;
101
120
padding : 0.2em 0.45em 0.1em 0.45em ;
102
121
line-height : 1.6 ;
103
- overflow : hidden ;
104
122
}
105
123
& .styled label {
106
124
transform : translateY (-0.05em );
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ input[type="number"] {
108
108
}
109
109
}
110
110
111
+
111
112
s-page {
112
113
--s-color-scrim : #000000 ;
113
114
--s-color-primary : #00639a ;
You can’t perform that action at this time.
0 commit comments