Skip to content

Commit d08df1f

Browse files
committed
[bug] fix group header alignment
1 parent 6105b37 commit d08df1f

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

‎src/css/group.css‎

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,25 @@
2626
.group-header{
2727
position: relative;
2828
display: flex;
29-
flex-direction: row;
30-
justify-content: flex-start;
3129
align-items: center;
3230
flex-wrap: nowrap;
3331
transition: padding var(--layout-timing-extra-fast);
3432
}
3533

34+
.is-group-area-alignment-left .group-header{
35+
flex-direction: row;
36+
}
37+
38+
.is-group-area-alignment-center .group-header{
39+
flex-direction: row;
40+
justify-content: center;
41+
}
42+
43+
.is-group-area-alignment-right .group-header{
44+
flex-direction: row-reverse;
45+
justify-content: flex-start;
46+
}
47+
3648
.is-group-name-show .group-header,
3749
.is-link-edit .group-header{
3850
padding-bottom:calc(var(--layout-space) *var(--layout-gutter));
@@ -77,7 +89,6 @@
7789
}
7890

7991
.is-link-edit .group-control{
80-
margin-right:1em;
8192
height:2.5em;
8293
width:16em;
8394
transition:
@@ -86,6 +97,15 @@
8697
margin var(--layout-timing-extra-fast) var(--layout-duration-04);
8798
}
8899

100+
.is-group-area-alignment-left .group-control,
101+
.is-group-area-alignment-center .group-control{
102+
margin-right:1em;
103+
}
104+
105+
.is-group-area-alignment-right .group-control{
106+
margin-left:1em;
107+
}
108+
89109
.group-control-item{
90110
width:4em;
91111
flex-shrink:0;

0 commit comments

Comments
(0)