File tree 3 files changed +32
-0
lines changed
3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ {{template "base/head" .}}
2
+ <link rel="stylesheet" href="{{AssetUrlPrefix}}/css/devtest.css?v={{AssetVersion}}">
3
+ <div class="page-content devtest ui container">
4
+ <div>
5
+ <h1>Label</h1>
6
+ <div class="flex-text-block tw-my-2">
7
+ <span class="ui label">simple label</span>
8
+ <span class="ui red label">red label</span>
9
+ <span class="ui green label">green label</span>
10
+ </div>
11
+ <div class="flex-text-block tw-my-2">
12
+ <span class="ui basic label">basic label</span>
13
+ <span class="ui basic red label">basic red label</span>
14
+ <span class="ui basic green label">basic green label</span>
15
+ </div>
16
+ <div class="flex-text-block tw-my-2">
17
+ <span class="ui label">long content must be in a non-flex "gt-ellipsis" element, otherwise it won't get ellipsis. very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong label</span>
18
+ </div>
19
+ <div class="flex-text-block tw-my-2">
20
+ <span class="ui label"><span class="gt-ellipsis">very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong label</span></span>
21
+ </div>
22
+ <div class="tw-my-2">
23
+ <span class="ui label"><span class="gt-ellipsis">very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong label</span></span>
24
+ </div>
25
+ </div>
26
+ </div>
27
+ {{template "base/footer" .}}
Original file line number Diff line number Diff line change @@ -1341,6 +1341,7 @@ table th[data-sortt-desc] .svg {
1341
1341
align-items : center;
1342
1342
gap : .25rem ;
1343
1343
vertical-align : middle;
1344
+ min-width : 0 ;
1344
1345
}
1345
1346
1346
1347
.ui .dropdown .ui .label .svg {
@@ -1357,11 +1358,13 @@ table th[data-sortt-desc] .svg {
1357
1358
display : flex;
1358
1359
align-items : center;
1359
1360
gap : .25rem ;
1361
+ min-width : 0 ;
1360
1362
}
1361
1363
1362
1364
/* to override Fomantic's default display: block for ".menu .item", and use a slightly larger gap for menu item content */
1363
1365
.ui .dropdown .menu .flex-items-menu > .item {
1364
1366
display : flex !important ;
1365
1367
align-items : center;
1366
1368
gap : .5rem ;
1369
+ min-width : 0 ;
1367
1370
}
Original file line number Diff line number Diff line change 5
5
display : inline-flex;
6
6
align-items : center;
7
7
gap : .25rem ;
8
+ 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% */
8
10
vertical-align : middle;
9
11
line-height : 1 ;
10
12
background : var (--color-label-bg );
You can’t perform that action at this time.
0 commit comments