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

Commit fbee2ad

Browse files
committed
Fix visual regression
1 parent 2649d3b commit fbee2ad

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

res/css/structures/_ThreadsActivityCentre.pcss

+7-1
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,21 @@
2222

2323
&.expanded {
2424
/* align with settings icon */
25-
margin-left: 22px;
25+
margin-left: 21px;
2626

27+
/**
28+
* modify internal css of the compound component
29+
* dirty but we need to add the `Threads` label into the indicator icon button
30+
**/
2731
& > div {
2832
display: flex;
33+
align-items: center;
2934
}
3035

3136
& .mx_ThreadsActivityCentreButton_Icon {
3237
/* align with settings label */
3338
margin-right: 14px;
39+
/* required to set the icon width when into a flex container */
3440
min-width: 24px;
3541
}
3642

src/components/views/spaces/threads-activity-centre/ThreadsActivityCentreButton.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export const ThreadsActivityCentreButton = forwardRef<HTMLDivElement, ThreadsAct
6363
>
6464
<>
6565
<Icon className="mx_ThreadsActivityCentreButton_Icon" />
66+
{/* This is dirty, but we need to add the label to the indicator icon */}
6667
{displayLabel && (
6768
<Text
6869
className="mx_ThreadsActivityCentreButton_Text"

0 commit comments

Comments
 (0)