Skip to content

Commit a7521f2

Browse files
committed
fix(Internationalization): Drop-down lists do not wrap and adapt to text length.
1 parent 8e5662c commit a7521f2

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

frontend/src/views/chat/ChatList.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ const handleConfirmPassword = () => {
401401
box-shadow: 0px 4px 8px 0px #1f23291a;
402402
border-radius: 4px;
403403
border: 1px solid #dee0e3;
404-
width: 120px !important;
404+
width: fit-content !important;
405405
min-width: 120px !important;
406406
padding: 0;
407407
.content {
@@ -417,7 +417,7 @@ const handleConfirmPassword = () => {
417417
}
418418
.item {
419419
position: relative;
420-
padding-left: 12px;
420+
padding: 0 12px;
421421
height: 40px;
422422
display: flex;
423423
align-items: center;
@@ -434,7 +434,7 @@ const handleConfirmPassword = () => {
434434
435435
&::after {
436436
content: '';
437-
width: 112px;
437+
width: calc(100% - 8px);
438438
height: 32px;
439439
border-radius: 4px;
440440
position: absolute;

frontend/src/views/ds/Card.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ const onClickOutside = () => {
259259
box-shadow: 0px 4px 8px 0px #1f23291a;
260260
border-radius: 4px;
261261
border: 1px solid #dee0e3;
262-
width: 120px !important;
262+
width: fit-content !important;
263263
min-width: 120px !important;
264264
padding: 0;
265265
@@ -278,7 +278,7 @@ const onClickOutside = () => {
278278
279279
.item {
280280
position: relative;
281-
padding-left: 12px;
281+
padding: 0 12px;
282282
height: 40px;
283283
display: flex;
284284
align-items: center;
@@ -297,7 +297,7 @@ const onClickOutside = () => {
297297
298298
&::after {
299299
content: '';
300-
width: 112px;
300+
width: calc(100% - 8px);
301301
height: 32px;
302302
border-radius: 4px;
303303
position: absolute;

frontend/src/views/system/embedded/Card.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ const pageLogo = computed(() => {
260260
box-shadow: 0px 4px 8px 0px #1f23291a;
261261
border-radius: 4px;
262262
border: 1px solid #dee0e3;
263-
width: 120px !important;
263+
width: fit-content !important;
264264
min-width: 120px !important;
265265
padding: 0;
266266
@@ -279,7 +279,7 @@ const pageLogo = computed(() => {
279279
280280
.item {
281281
position: relative;
282-
padding-left: 12px;
282+
padding: 0 12px;
283283
height: 40px;
284284
display: flex;
285285
align-items: center;
@@ -298,7 +298,7 @@ const pageLogo = computed(() => {
298298
299299
&::after {
300300
content: '';
301-
width: 112px;
301+
width: calc(100% - 8px);
302302
height: 32px;
303303
border-radius: 4px;
304304
position: absolute;

frontend/src/views/system/embedded/DsCard.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ const handlePublic = () => {
215215
box-shadow: 0px 4px 8px 0px #1f23291a;
216216
border-radius: 4px;
217217
border: 1px solid #dee0e3;
218-
width: 120px !important;
218+
width: fit-content !important;
219219
min-width: 120px !important;
220220
padding: 0;
221221
.content {
@@ -231,7 +231,7 @@ const handlePublic = () => {
231231
}
232232
.item {
233233
position: relative;
234-
padding-left: 12px;
234+
padding: 0 12px;
235235
height: 40px;
236236
display: flex;
237237
align-items: center;
@@ -248,7 +248,7 @@ const handlePublic = () => {
248248
249249
&::after {
250250
content: '';
251-
width: 112px;
251+
width: calc(100% - 8px);
252252
height: 32px;
253253
border-radius: 4px;
254254
position: absolute;

frontend/src/views/system/workspace/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ const handleCurrentChange = (val: number) => {
869869
box-shadow: 0px 4px 8px 0px #1f23291a;
870870
border-radius: 4px;
871871
border: 1px solid #dee0e3;
872-
width: 120px !important;
872+
width: fit-content !important;
873873
min-width: 120px !important;
874874
padding: 0;
875875
.content {
@@ -885,7 +885,7 @@ const handleCurrentChange = (val: number) => {
885885
}
886886
.item {
887887
position: relative;
888-
padding-left: 12px;
888+
padding: 0 12px;
889889
height: 40px;
890890
display: flex;
891891
align-items: center;
@@ -902,7 +902,7 @@ const handleCurrentChange = (val: number) => {
902902
903903
&::after {
904904
content: '';
905-
width: 112px;
905+
width: calc(100% - 8px);
906906
height: 32px;
907907
border-radius: 4px;
908908
position: absolute;

0 commit comments

Comments
 (0)