Skip to content

Commit 9001757

Browse files
committed
use flex-basis, add word-break
1 parent 07a031d commit 9001757

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

templates/devtest/flex-list.tmpl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,13 @@
4141
</div>
4242
<div class="flex-item-main">
4343
<div class="flex-item-title">
44-
Flex Item
45-
<span class="ui basic label">
46-
with label
47-
</span>
44+
Very loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong title
4845
</div>
4946
<div class="flex-item-body">
5047
consists of leading/main/trailing part
5148
</div>
5249
<div class="flex-item-body">
53-
main part contains title and (multiple) body lines
50+
Very loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong content
5451
</div>
5552
</div>
5653
<div class="flex-item-trailing">

web_src/css/shared/flex-list.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
display: flex;
3030
flex-direction: column;
3131
flex-grow: 1;
32+
flex-basis: 60%;
3233
}
3334

3435
.flex-item-header {
@@ -53,7 +54,6 @@
5354
flex-grow: 0;
5455
flex-wrap: wrap;
5556
justify-content: end;
56-
min-width: calc(min(40%, 200px));
5757
}
5858

5959
.flex-item .flex-item-title {
@@ -64,8 +64,8 @@
6464
max-width: 100%;
6565
color: var(--color-text);
6666
font-size: 16px;
67-
min-width: 0;
6867
font-weight: var(--font-weight-semibold);
68+
word-break: break-word;
6969
}
7070

7171
.flex-item .flex-item-title a {
@@ -80,6 +80,7 @@
8080
flex-wrap: wrap;
8181
gap: .25rem;
8282
color: var(--color-text-light-2);
83+
word-break: break-word;
8384
}
8485

8586
.flex-item .flex-item-body a {

0 commit comments

Comments
 (0)