This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree 2 files changed +21
-15
lines changed
src/components/structures
2 files changed +21
-15
lines changed Original file line number Diff line number Diff line change @@ -35,36 +35,40 @@ limitations under the License.
35
35
}
36
36
37
37
.mx_SpaceHierarchy_listHeader {
38
- display : flex ;
39
- min-height : 32 px ;
38
+ display : grid ;
39
+ justify-content : space-between ;
40
40
align-items : center ;
41
+ column-gap : 10px ;
42
+ min-height : 32px ;
41
43
font-size : $font-15px ;
42
44
line-height : $font-24px ;
43
45
color : $primary-content ;
44
46
margin-bottom : 12px ;
45
47
46
- > h4 {
48
+ .mx_SpaceHierarchy_listHeader_header {
49
+ grid-column-start : 1 ;
47
50
font-weight : $font-semi-bold ;
48
51
margin : 0 ;
49
52
}
50
53
51
- .mx_AccessibleButton {
52
- padding : 4px 12px ;
53
- font-weight : normal ;
54
+ .mx_SpaceHierarchy_listHeader_buttons {
55
+ grid-column-start : 2 ;
56
+ display : flex ;
57
+ flex-flow : wrap ;
58
+ justify-content : flex-end ;
59
+ row-gap : 12px ;
60
+ column-gap : 12px ;
54
61
55
- & + .mx_AccessibleButton {
56
- margin-left : 16px ;
62
+ .mx_AccessibleButton {
63
+ padding : 4px 12px ;
64
+ font-weight : normal ;
57
65
}
58
66
}
59
67
60
68
.mx_AccessibleButton_kind_danger_outline ,
61
69
.mx_AccessibleButton_kind_primary_outline {
62
70
padding : 3px 12px ; // to account for the 1px border
63
71
}
64
-
65
- > span {
66
- margin-left : auto ;
67
- }
68
72
}
69
73
70
74
.mx_SpaceHierarchy_error {
Original file line number Diff line number Diff line change @@ -770,8 +770,10 @@ const SpaceHierarchy = ({
770
770
771
771
content = < >
772
772
< div className = "mx_SpaceHierarchy_listHeader" >
773
- < h4 > { query . trim ( ) ? _t ( "Results" ) : _t ( "Rooms and spaces" ) } </ h4 >
774
- < span >
773
+ < h4 className = "mx_SpaceHierarchy_listHeader_header" >
774
+ { query . trim ( ) ? _t ( "Results" ) : _t ( "Rooms and spaces" ) }
775
+ </ h4 >
776
+ < div className = "mx_SpaceHierarchy_listHeader_buttons" >
775
777
{ additionalButtons }
776
778
{ hasPermissions && (
777
779
< ManageButtons
@@ -781,7 +783,7 @@ const SpaceHierarchy = ({
781
783
setError = { setError }
782
784
/>
783
785
) }
784
- </ span >
786
+ </ div >
785
787
</ div >
786
788
{ errorText && < div className = "mx_SpaceHierarchy_error" >
787
789
{ errorText }
You can’t perform that action at this time.
0 commit comments