mirror of https://github.com/vector-im/riot-web
Fix alignment bug with space panel on spaces with subspaces in Chrome
parent
6d9496cc22
commit
ee5d0d6842
|
@ -146,9 +146,6 @@ $activeBorderColor: $secondary-fg-color;
|
||||||
|
|
||||||
.mx_SpaceButton_toggleCollapse {
|
.mx_SpaceButton_toggleCollapse {
|
||||||
width: $gutterSize;
|
width: $gutterSize;
|
||||||
// negative margin to place it correctly even with the complex
|
|
||||||
// 4px selection border each space button has when active
|
|
||||||
margin-right: -4px;
|
|
||||||
height: 20px;
|
height: 20px;
|
||||||
mask-position: center;
|
mask-position: center;
|
||||||
mask-size: 20px;
|
mask-size: 20px;
|
||||||
|
|
|
@ -37,7 +37,7 @@ import {
|
||||||
showSpaceSettings,
|
showSpaceSettings,
|
||||||
} from "../../../utils/space";
|
} from "../../../utils/space";
|
||||||
import MatrixClientContext from "../../../contexts/MatrixClientContext";
|
import MatrixClientContext from "../../../contexts/MatrixClientContext";
|
||||||
import {ButtonEvent} from "../elements/AccessibleButton";
|
import AccessibleButton, {ButtonEvent} from "../elements/AccessibleButton";
|
||||||
import defaultDispatcher from "../../../dispatcher/dispatcher";
|
import defaultDispatcher from "../../../dispatcher/dispatcher";
|
||||||
import Modal from "../../../Modal";
|
import Modal from "../../../Modal";
|
||||||
import SpacePublicShare from "./SpacePublicShare";
|
import SpacePublicShare from "./SpacePublicShare";
|
||||||
|
@ -353,7 +353,7 @@ export class SpaceItem extends React.PureComponent<IItemProps, IItemState> {
|
||||||
const avatarSize = isNested ? 24 : 32;
|
const avatarSize = isNested ? 24 : 32;
|
||||||
|
|
||||||
const toggleCollapseButton = childSpaces && childSpaces.length ?
|
const toggleCollapseButton = childSpaces && childSpaces.length ?
|
||||||
<button
|
<AccessibleButton
|
||||||
className="mx_SpaceButton_toggleCollapse"
|
className="mx_SpaceButton_toggleCollapse"
|
||||||
onClick={evt => this.toggleCollapse(evt)}
|
onClick={evt => this.toggleCollapse(evt)}
|
||||||
/> : null;
|
/> : null;
|
||||||
|
|
Loading…
Reference in New Issue