Fix buttons alignment of Space list header (#8047)
This commit is contained in:
parent
14807de552
commit
ed6a371616
2 changed files with 21 additions and 15 deletions
|
@ -35,25 +35,33 @@ limitations under the License.
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_SpaceHierarchy_listHeader {
|
.mx_SpaceHierarchy_listHeader {
|
||||||
display: flex;
|
display: grid;
|
||||||
min-height: 32px;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
column-gap: 10px;
|
||||||
|
min-height: 32px;
|
||||||
font-size: $font-15px;
|
font-size: $font-15px;
|
||||||
line-height: $font-24px;
|
line-height: $font-24px;
|
||||||
color: $primary-content;
|
color: $primary-content;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
|
|
||||||
> h4 {
|
.mx_SpaceHierarchy_listHeader_header {
|
||||||
|
grid-column-start: 1;
|
||||||
font-weight: $font-semi-bold;
|
font-weight: $font-semi-bold;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mx_SpaceHierarchy_listHeader_buttons {
|
||||||
|
grid-column-start: 2;
|
||||||
|
display: flex;
|
||||||
|
flex-flow: wrap;
|
||||||
|
justify-content: flex-end;
|
||||||
|
row-gap: 12px;
|
||||||
|
column-gap: 12px;
|
||||||
|
|
||||||
.mx_AccessibleButton {
|
.mx_AccessibleButton {
|
||||||
padding: 4px 12px;
|
padding: 4px 12px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
|
||||||
& + .mx_AccessibleButton {
|
|
||||||
margin-left: 16px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,10 +69,6 @@ limitations under the License.
|
||||||
.mx_AccessibleButton_kind_primary_outline {
|
.mx_AccessibleButton_kind_primary_outline {
|
||||||
padding: 3px 12px; // to account for the 1px border
|
padding: 3px 12px; // to account for the 1px border
|
||||||
}
|
}
|
||||||
|
|
||||||
> span {
|
|
||||||
margin-left: auto;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_SpaceHierarchy_error {
|
.mx_SpaceHierarchy_error {
|
||||||
|
|
|
@ -770,8 +770,10 @@ const SpaceHierarchy = ({
|
||||||
|
|
||||||
content = <>
|
content = <>
|
||||||
<div className="mx_SpaceHierarchy_listHeader">
|
<div className="mx_SpaceHierarchy_listHeader">
|
||||||
<h4>{ query.trim() ? _t("Results") : _t("Rooms and spaces") }</h4>
|
<h4 className="mx_SpaceHierarchy_listHeader_header">
|
||||||
<span>
|
{ query.trim() ? _t("Results") : _t("Rooms and spaces") }
|
||||||
|
</h4>
|
||||||
|
<div className="mx_SpaceHierarchy_listHeader_buttons">
|
||||||
{ additionalButtons }
|
{ additionalButtons }
|
||||||
{ hasPermissions && (
|
{ hasPermissions && (
|
||||||
<ManageButtons
|
<ManageButtons
|
||||||
|
@ -781,7 +783,7 @@ const SpaceHierarchy = ({
|
||||||
setError={setError}
|
setError={setError}
|
||||||
/>
|
/>
|
||||||
) }
|
) }
|
||||||
</span>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{ errorText && <div className="mx_SpaceHierarchy_error">
|
{ errorText && <div className="mx_SpaceHierarchy_error">
|
||||||
{ errorText }
|
{ errorText }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue