Align RoomSummaryCard styles with Figma (#12793)
* Extract useIsVideoRoom hook Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Align RoomSummaryCard styles with Figma Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update screenshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update screenshot Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
b6addb4118
commit
a38a5161ef
13 changed files with 304 additions and 273 deletions
|
@ -385,18 +385,11 @@ const RoomSummaryCard: React.FC<IProps> = ({
|
|||
disabled={!canInviteToState}
|
||||
onSelect={() => inviteToRoom(room)}
|
||||
/>
|
||||
<MenuItem Icon={LinkIcon} label={_t("action|copy_link")} onSelect={onShareRoomClick} />
|
||||
<MenuItem Icon={SettingsIcon} label={_t("common|settings")} onSelect={onRoomSettingsClick} />
|
||||
|
||||
<Separator />
|
||||
|
||||
{!isVideoRoom && (
|
||||
<>
|
||||
<MenuItem Icon={FilesIcon} label={_t("right_panel|files_button")} onSelect={onRoomFilesClick} />
|
||||
<MenuItem
|
||||
Icon={PollsIcon}
|
||||
label={_t("right_panel|polls_button")}
|
||||
onSelect={onRoomPollHistoryClick}
|
||||
/>
|
||||
{pinningEnabled && (
|
||||
<MenuItem
|
||||
Icon={PinIcon}
|
||||
|
@ -408,6 +401,21 @@ const RoomSummaryCard: React.FC<IProps> = ({
|
|||
</Text>
|
||||
</MenuItem>
|
||||
)}
|
||||
<MenuItem Icon={FilesIcon} label={_t("right_panel|files_button")} onSelect={onRoomFilesClick} />
|
||||
</>
|
||||
)}
|
||||
|
||||
<Separator />
|
||||
|
||||
<MenuItem Icon={LinkIcon} label={_t("action|copy_link")} onSelect={onShareRoomClick} />
|
||||
|
||||
{!isVideoRoom && (
|
||||
<>
|
||||
<MenuItem
|
||||
Icon={PollsIcon}
|
||||
label={_t("right_panel|polls_button")}
|
||||
onSelect={onRoomPollHistoryClick}
|
||||
/>
|
||||
<MenuItem
|
||||
Icon={ExportArchiveIcon}
|
||||
label={_t("export_chat|title")}
|
||||
|
@ -416,6 +424,8 @@ const RoomSummaryCard: React.FC<IProps> = ({
|
|||
</>
|
||||
)}
|
||||
|
||||
<MenuItem Icon={SettingsIcon} label={_t("common|settings")} onSelect={onRoomSettingsClick} />
|
||||
|
||||
<Separator />
|
||||
|
||||
<MenuItem
|
||||
|
|
|
@ -1846,7 +1846,7 @@
|
|||
},
|
||||
"title": "Pinned messages"
|
||||
},
|
||||
"pinned_messages_button": "Pinned",
|
||||
"pinned_messages_button": "Pinned messages",
|
||||
"poll": {
|
||||
"active_heading": "Active polls",
|
||||
"empty_active": "There are no active polls in this room",
|
||||
|
@ -1871,7 +1871,7 @@
|
|||
"view_in_timeline": "View poll in timeline",
|
||||
"view_poll": "View poll"
|
||||
},
|
||||
"polls_button": "Poll history",
|
||||
"polls_button": "Polls",
|
||||
"room_summary_card": {
|
||||
"title": "Room info"
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue