@@ -82,8 +82,8 @@ const onClick = () => {
82
82
</NIcon >
83
83
</NButton >
84
84
85
- <NFlex class =" names" size =" large" : wrap= " false " >
86
- <NFlex vertical class =" column-1 " justify =" center" >
85
+ <NFlex class =" names" size =" large" wrap >
86
+ <NFlex vertical class =" column" justify =" center" >
87
87
<TextField
88
88
:label =" i18n('username')"
89
89
:value =" user?.username"
@@ -98,7 +98,7 @@ const onClick = () => {
98
98
/>
99
99
<TextField :label =" i18n('joined')" :value =" joinDate" label-width =" 4.5rem" />
100
100
</NFlex >
101
- <NFlex vertical class =" column-2 " justify =" center" >
101
+ <NFlex vertical class =" column" justify =" center" >
102
102
<TextField
103
103
:label =" i18n('private')"
104
104
:value =" user?.private"
@@ -131,26 +131,37 @@ const onClick = () => {
131
131
</NCard >
132
132
133
133
<NCard class =" account-card" :style =" { '--n-border-color': 'var(--border-color)' }" >
134
- <NFlex class =" limits" size =" large" >
135
- <TextField
136
- :label =" i18n('watchlist_max')"
137
- :value =" limits?.watchlist?.item_count"
138
- />
139
- <TextField
140
- :label =" i18n('recommendations_max')"
141
- :value =" limits?.recommendations?.item_count"
142
- grow
143
- />
144
- <TextField
145
- :label =" i18n('favorites_max')"
146
- :value =" limits?.favorites?.item_count"
147
- />
148
- <TextField :label =" i18n('user_lists_maximum')" :value =" limits?.list?.count" />
149
- <TextField
150
- :label =" i18n('user_lists_max_items')"
151
- :value =" limits?.list?.item_count"
152
- grow
153
- />
134
+ <NFlex class =" limits" size =" large" wrap >
135
+ <NFlex vertical class =" column" >
136
+ <TextField
137
+ :label =" i18n('user_lists_maximum')"
138
+ :value =" limits?.list?.count"
139
+ label-width =" 9.75rem"
140
+ />
141
+ <TextField
142
+ :label =" i18n('user_lists_max_items')"
143
+ :value =" limits?.list?.item_count"
144
+ label-width =" 9.75rem"
145
+ />
146
+ </NFlex >
147
+ <NFlex vertical class =" column" >
148
+ <TextField
149
+ :label =" i18n('watchlist_max')"
150
+ :value =" limits?.watchlist?.item_count"
151
+ />
152
+ <TextField
153
+ :label =" i18n('favorites_max')"
154
+ :value =" limits?.favorites?.item_count"
155
+ />
156
+ </NFlex >
157
+ <NFlex vertical class =" column" >
158
+ <TextField
159
+ :label =" i18n('recommendations_max')"
160
+ :value =" limits?.recommendations?.item_count"
161
+ label-width =" 9.75rem"
162
+ grow
163
+ />
164
+ </NFlex >
154
165
</NFlex >
155
166
</NCard >
156
167
</NFlex >
@@ -195,19 +206,14 @@ const onClick = () => {
195
206
196
207
.names {
197
208
flex : 1 1 auto ;
209
+ min-width : fit-content ;
198
210
max-width : calc (100% - 128px - 2rem ); // 100% - image - (margin + gap)
199
211
margin-left : 1rem ;
212
+ }
200
213
201
- .column-1 {
202
- flex : 1 1 auto ;
203
- min-width : max-content ;
204
- }
205
-
206
- .column-2 {
207
- flex : 1 0 auto ;
208
- min-width : max-content ;
209
- margin-left : 1rem ;
210
- }
214
+ .column {
215
+ flex : 1 1 auto ;
216
+ min-width : max-content ;
211
217
}
212
218
}
213
219
0 commit comments