Skip to content

Commit 31f07d9

Browse files
committed
[design] improve group name and controls
1 parent 16d6eb1 commit 31f07d9

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

‎src/css/group.css‎

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
flex-direction: row;
3030
justify-content: flex-start;
3131
align-items: center;
32-
flex-wrap:wrap;
33-
transition: padding var(--layout-timing-extra-fast)var(--layout-duration-04);
32+
flex-wrap:nowrap;
33+
transition: padding var(--layout-timing-extra-fast);
3434
}
3535

3636
.is-group-name-show .group-header,
@@ -41,19 +41,26 @@
4141

4242
.group-name{
4343
margin-right:0;
44-
display:none;
44+
display:flex;
4545
align-items: center;
46-
min-height:2.5em;
46+
height:0;
47+
overflow: hidden;
4748
font-size:var(--group-name-size);
49+
transition: height var(--layout-timing-extra-fast);
50+
transition: height var(--layout-timing-extra-fast);
4851
}
4952

5053
.is-group-name-show .group-name{
5154
display: flex;
55+
height:2.5em;
5256
}
5357

5458
.group-name-text{
5559
font-family:var(--font-fjalla);
5660
margin-bottom:0;
61+
overflow: hidden;
62+
text-overflow: ellipsis;
63+
white-space: nowrap;
5764
}
5865

5966
.group-control{
@@ -62,13 +69,15 @@
6269
overflow: hidden;
6370
height:0;
6471
width:0;
72+
flex-shrink:0;
6573
transition:
6674
width var(--layout-timing-extra-fast),
6775
height var(--layout-timing-extra-fast) var(--layout-duration-04),
6876
margin var(--layout-timing-extra-fast);
6977
}
7078

7179
.is-link-edit .group-control{
80+
margin-right:1em;
7281
height:2.5em;
7382
width:16em;
7483
transition:
@@ -77,10 +86,6 @@
7786
margin var(--layout-timing-extra-fast) var(--layout-duration-04);
7887
}
7988

80-
.is-link-edit.is-group-name-show .group-control{
81-
margin-right:1em;
82-
}
83-
8489
.group-control-item{
8590
width:4em;
8691
flex-shrink:0;

0 commit comments

Comments
(0)