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:
Michael Telatynski 2024-08-01 13:00:40 +01:00 committed by GitHub
parent b6addb4118
commit a38a5161ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 304 additions and 273 deletions

View file

@ -320,7 +320,7 @@ describe("<PollHistory />", () => {
fireEvent.click(getByText("Question?"));
expect(queryByText("Poll history")).not.toBeInTheDocument();
expect(queryByText("Polls")).not.toBeInTheDocument();
// elements from MPollBody
expect(getByText("Question?")).toMatchSnapshot();
expect(getByText("Socks")).toBeInTheDocument();
@ -396,13 +396,13 @@ describe("<PollHistory />", () => {
expect(getByText("Question?")).toBeInTheDocument();
// header not shown
expect(queryByText("Poll history")).not.toBeInTheDocument();
expect(queryByText("Polls")).not.toBeInTheDocument();
expect(getByText("Active polls")).toMatchSnapshot();
fireEvent.click(getByText("Active polls"));
// main list header displayed again
expect(getByText("Poll history")).toBeInTheDocument();
expect(getByText("Polls")).toBeInTheDocument();
// active filter still active
expect(getByTestId("filter-tab-PollHistory_filter-ACTIVE").firstElementChild).toBeChecked();
// list displayed

View file

@ -37,7 +37,7 @@ exports[`<PollHistory /> renders a list of active polls when there are polls in
<h2
class="mx_Heading_h2 mx_PollHistory_header"
>
Poll history
Polls
</h2>
<div
class="mx_PollHistoryList"