Skip to content

Commit b28bc6d

Browse files
committed
fix
1 parent 4c6e2da commit b28bc6d

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed

templates/devtest/label.tmpl

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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>
7+
<div class="flex-text-block tw-my-2">
8+
<span class="ui label">simple label</span>
9+
<span class="ui red label">red label</span>
10+
<span class="ui green label">green label</span>
11+
</div>
12+
<div class="flex-text-block tw-my-2">
13+
<span class="ui basic label">basic label</span>
14+
<span class="ui basic red label">basic red label</span>
15+
<span class="ui basic green label">basic green label</span>
16+
</div>
17+
<div class="flex-text-block tw-my-2">
18+
<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>
19+
</div>
20+
<div class="flex-text-block tw-my-2">
21+
<span class="ui label"><span class="gt-ellipsis">very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong label</span></span>
22+
</div>
23+
</div>
24+
</div>
25+
</div>
26+
{{template "base/footer" .}}

web_src/css/base.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,6 +1345,7 @@ table th[data-sortt-desc] .svg {
13451345
align-items: center;
13461346
gap: .25rem;
13471347
vertical-align: middle;
1348+
min-width: 0;
13481349
}
13491350

13501351
.ui.ui.button {
@@ -1365,11 +1366,13 @@ table th[data-sortt-desc] .svg {
13651366
display: flex;
13661367
align-items: center;
13671368
gap: .25rem;
1369+
min-width: 0;
13681370
}
13691371

13701372
/* to override Fomantic's default display: block for ".menu .item", and use a slightly larger gap for menu item content */
13711373
.ui.dropdown .menu.flex-items-menu > .item {
13721374
display: flex !important;
13731375
align-items: center;
13741376
gap: .5rem;
1377+
min-width: 0;
13751378
}

web_src/css/helpers.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Gitea's private styles use `g-` prefix.
1313
overflow: hidden !important;
1414
white-space: nowrap !important;
1515
text-overflow: ellipsis !important;
16+
min-width: 0;
1617
}
1718

1819
.g-table-auto-ellipsis td.auto-ellipsis {

web_src/css/modules/label.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
display: inline-flex;
66
align-items: center;
77
gap: .25rem;
8+
min-width: 0;
89
vertical-align: middle;
910
line-height: 1;
1011
background: var(--color-label-bg);

0 commit comments

Comments
 (0)