Skip to content

Commit 393bbdb

Browse files
authored
Merge pull request #576 from CWNU-Open-Source-Community/fix/ui-text-overflow
fix(web): 模型卡片与归档标题文本在平板宽度下不再截断
2 parents e31eec5 + fb5657b commit 393bbdb

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

‎web/src/v2/components/settings.css‎

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
.v2-setting-row > div:first-child strong { font-weight: 600; }
3333
.v2-setting-row > div:first-child span { color: var(--v2-muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; word-break: break-word; }
3434
.v2-setting-value { align-items: center; color: var(--v2-muted); display: flex; flex: 0 1 auto; gap: 8px; max-width: 48%; }
35-
.v2-setting-value code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
35+
.v2-setting-value code { overflow-wrap: break-word; white-space: normal; }
3636
.v2-projectless-directory .v2-setting-row { align-items: flex-start; }
3737
.v2-projectless-path { display: block; font-size: 12px; line-height: 1.7; margin-top: 6px; overflow-wrap: anywhere; }
3838
.v2-projectless-directory .v2-settings-hint { color: var(--v2-muted); font-size: 13px; line-height: 1.6; margin: 10px 0 0; }
@@ -151,8 +151,8 @@
151151
.v2-provider-row:active { background: var(--v2-control-hover); }
152152
.v2-provider-mark { align-items: center; background: color-mix(in srgb, var(--v2-accent) 9%, var(--v2-control)); border: 1px solid color-mix(in srgb, var(--v2-accent) 16%, var(--v2-border)); border-radius: 12px; color: var(--v2-accent); display: flex; height: 34px; justify-content: center; width: 34px; }
153153
.v2-provider-row-copy { display: grid; flex: 1 1 auto; gap: 4px; min-width: 0; }
154-
.v2-provider-row-copy strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
155-
.v2-provider-row-copy small { color: var(--v2-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
154+
.v2-provider-row-copy strong { font-weight: 600; overflow-wrap: anywhere; white-space: normal; }
155+
.v2-provider-row-copy small { color: var(--v2-muted); overflow-wrap: anywhere; white-space: normal; }
156156
.v2-provider-tags { align-items: center; display: flex; flex: 0 0 auto; gap: 6px; }
157157
.v2-provider-tags i,
158158
.v2-provider-status { background: var(--v2-control); border: 1px solid color-mix(in srgb, var(--v2-border) 70%, transparent); border-radius: 999px; color: var(--v2-muted); font-size: 11px; font-style: normal; padding: 4px 8px; white-space: nowrap; }
@@ -402,8 +402,13 @@
402402
.v2-archive-list article { align-items: center; display: flex; gap: 7px; min-height: 63px; padding: 9px 12px 9px 15px; position: relative; }
403403
.v2-archive-list article + article::before { background: var(--v2-border); content: ""; height: 1px; left: 15px; position: absolute; right: 15px; top: 0; }
404404
.v2-archive-list article > div { display: grid; flex: 1; gap: 3px; min-width: 0; }
405-
.v2-archive-list article > div strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
405+
.v2-archive-list article > div strong { overflow-wrap: anywhere; white-space: normal; }
406406
.v2-archive-list article > div span { color: var(--v2-muted); font-size: 12px; }
407+
.v2-archive-list button.link-button {
408+
height: auto;
409+
white-space: normal;
410+
text-align: left;
411+
}
407412
.v2-archive-list button.danger { color: var(--v2-danger); }
408413
.v2-archive-empty { color: var(--v2-muted); padding: 40px; text-align: center; }
409414
.v2-license-dialog { display: flex; flex-direction: column; max-height: min(760px, calc(100dvh - 32px)); width: min(760px, calc(100vw - 32px)); }
@@ -570,9 +575,8 @@
570575
}
571576
.v2-model-card-copy strong,
572577
.v2-model-card-copy span {
573-
overflow: hidden;
574-
text-overflow: ellipsis;
575-
white-space: nowrap;
578+
overflow-wrap: anywhere;
579+
white-space: normal;
576580
}
577581
.v2-model-card-copy strong {
578582
font-size: 14px;

0 commit comments

Comments
 (0)