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

Commit fc6b8c2

Browse files
committed
Align RoomSummaryCard styles with Figma
Signed-off-by: Michael Telatynski <[email protected]>
1 parent 39d453a commit fc6b8c2

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

res/css/views/right_panel/_RoomSummaryCard.pcss

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ limitations under the License.
1515
*/
1616

1717
.mx_RoomSummaryCard {
18+
--cpd-separator-inset: var(--cpd-space-4x);
19+
--cpd-separator-spacing: var(--cpd-space-4x);
20+
1821
.mx_RoomSummaryCard_container {
1922
text-align: center;
2023
margin: $spacing-20 var(--cpd-space-4x) 0;

src/components/views/right_panel/RoomSummaryCard.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -571,16 +571,14 @@ const RoomSummaryCard: React.FC<IProps> = ({
571571
// XXX: https://github.com/element-hq/compound/issues/288
572572
onSelect={() => {}}
573573
/>
574+
<Separator />
574575
<MenuItem
575576
Icon={UserAddIcon}
576577
label={_t("action|invite")}
577578
disabled={!canInviteToState}
578579
onSelect={() => inviteToRoom(room)}
579580
/>
580581
<MenuItem Icon={LinkIcon} label={_t("action|copy_link")} onSelect={onShareRoomClick} />
581-
<MenuItem Icon={SettingsIcon} label={_t("common|settings")} onSelect={onRoomSettingsClick} />
582-
583-
<Separator />
584582
{!isVideoRoom && (
585583
<>
586584
<MenuItem Icon={FilesIcon} label={_t("right_panel|files_button")} onSelect={onRoomFilesClick} />
@@ -600,16 +598,18 @@ const RoomSummaryCard: React.FC<IProps> = ({
600598
</Text>
601599
</MenuItem>
602600
)}
603-
<MenuItem
604-
Icon={ExportArchiveIcon}
605-
label={_t("export_chat|title")}
606-
onSelect={onRoomExportClick}
607-
/>
608601
</>
609602
)}
610603

611604
<Separator />
612605

606+
{!isVideoRoom && (
607+
<MenuItem Icon={ExportArchiveIcon} label={_t("export_chat|title")} onSelect={onRoomExportClick} />
608+
)}
609+
610+
<MenuItem Icon={SettingsIcon} label={_t("common|settings")} onSelect={onRoomSettingsClick} />
611+
612+
<Separator />
613613
<MenuItem
614614
Icon={LeaveIcon}
615615
kind="critical"

src/i18n/strings/en_EN.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1869,7 +1869,7 @@
18691869
"view_in_timeline": "View poll in timeline",
18701870
"view_poll": "View poll"
18711871
},
1872-
"polls_button": "Poll history",
1872+
"polls_button": "Polls",
18731873
"room_summary_card": {
18741874
"title": "Room info"
18751875
},

0 commit comments

Comments
 (0)