Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit ee5d0d6

Browse files
committed
Fix alignment bug with space panel on spaces with subspaces in Chrome
1 parent 6d9496c commit ee5d0d6

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

res/css/structures/_SpacePanel.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@ $activeBorderColor: $secondary-fg-color;
146146

147147
.mx_SpaceButton_toggleCollapse {
148148
width: $gutterSize;
149-
// negative margin to place it correctly even with the complex
150-
// 4px selection border each space button has when active
151-
margin-right: -4px;
152149
height: 20px;
153150
mask-position: center;
154151
mask-size: 20px;

src/components/views/spaces/SpaceTreeLevel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import {
3737
showSpaceSettings,
3838
} from "../../../utils/space";
3939
import MatrixClientContext from "../../../contexts/MatrixClientContext";
40-
import {ButtonEvent} from "../elements/AccessibleButton";
40+
import AccessibleButton, {ButtonEvent} from "../elements/AccessibleButton";
4141
import defaultDispatcher from "../../../dispatcher/dispatcher";
4242
import Modal from "../../../Modal";
4343
import SpacePublicShare from "./SpacePublicShare";
@@ -353,7 +353,7 @@ export class SpaceItem extends React.PureComponent<IItemProps, IItemState> {
353353
const avatarSize = isNested ? 24 : 32;
354354

355355
const toggleCollapseButton = childSpaces && childSpaces.length ?
356-
<button
356+
<AccessibleButton
357357
className="mx_SpaceButton_toggleCollapse"
358358
onClick={evt => this.toggleCollapse(evt)}
359359
/> : null;

0 commit comments

Comments
 (0)