Skip to content

Commit ef3941f

Browse files
Revert 100% label max-width (#30481)
Partial revert of #30479 It's causing problems at least here: #30344 (comment) --------- Co-authored-by: wxiaoguang <[email protected]>
1 parent b84baf2 commit ef3941f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

templates/devtest/label.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<span class="ui label"><span class="gt-ellipsis">very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong label</span></span>
2121
</div>
2222
<div class="tw-my-2">
23-
<span class="ui label"><span class="gt-ellipsis">very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong label</span></span>
23+
<span class="ui label tw-max-w-full"><span class="gt-ellipsis">very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong label</span></span>
2424
</div>
2525
</div>
2626
</div>

web_src/css/modules/label.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
align-items: center;
77
gap: .25rem;
88
min-width: 0;
9-
max-width: 100%; /* since we are using "flex" to align label contents, we also need to limit the x-axis, a label shouldn't be wider than 100% */
109
vertical-align: middle;
1110
line-height: 1;
1211
background: var(--color-label-bg);

0 commit comments

Comments
 (0)