Fix icon size of badges in right panel (#32952)
* fix: icon size of badges in right panel * test: update snapshot * test: update screenshot
This commit is contained in:
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 37 KiB |
@@ -172,28 +172,28 @@ const RoomSummaryCardView: React.FC<IProps> = ({
|
||||
>
|
||||
{!vm.isDirectMessage && vm.roomJoinRule === JoinRule.Public && (
|
||||
<Badge kind="blue">
|
||||
<PublicIcon width="1rem" color="var(--cpd-color-icon-info-primary)" />
|
||||
<PublicIcon width="1rem" height="1rem" color="var(--cpd-color-icon-info-primary)" />
|
||||
{_t("common|public_room")}
|
||||
</Badge>
|
||||
)}
|
||||
|
||||
{vm.isRoomEncrypted && vm.e2eStatus !== E2EStatus.Warning && (
|
||||
<Badge kind="green">
|
||||
<LockIcon width="1rem" />
|
||||
<LockIcon width="1rem" height="1rem" />
|
||||
{_t("common|encrypted")}
|
||||
</Badge>
|
||||
)}
|
||||
|
||||
{!vm.isRoomEncrypted && (
|
||||
<Badge kind="blue">
|
||||
<LockOffIcon width="1rem" color="var(--cpd-color-icon-info-primary)" />
|
||||
<LockOffIcon width="1rem" height="1rem" color="var(--cpd-color-icon-info-primary)" />
|
||||
{_t("common|unencrypted")}
|
||||
</Badge>
|
||||
)}
|
||||
|
||||
{vm.e2eStatus === E2EStatus.Warning && (
|
||||
<Badge kind="red">
|
||||
<ErrorSolidIcon width="1rem" />
|
||||
<ErrorSolidIcon width="1rem" height="1rem" />
|
||||
{_t("common|not_trusted")}
|
||||
</Badge>
|
||||
)}
|
||||
|
||||
+6
-6
@@ -79,7 +79,7 @@ exports[`<RoomSummaryCard /> has button to edit topic 1`] = `
|
||||
<svg
|
||||
color="var(--cpd-color-icon-info-primary)"
|
||||
fill="currentColor"
|
||||
height="1em"
|
||||
height="1rem"
|
||||
viewBox="0 0 24 24"
|
||||
width="1rem"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
@@ -97,7 +97,7 @@ exports[`<RoomSummaryCard /> has button to edit topic 1`] = `
|
||||
<svg
|
||||
color="var(--cpd-color-icon-info-primary)"
|
||||
fill="currentColor"
|
||||
height="1em"
|
||||
height="1rem"
|
||||
viewBox="0 0 24 24"
|
||||
width="1rem"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
@@ -818,7 +818,7 @@ exports[`<RoomSummaryCard /> renders the room summary 1`] = `
|
||||
<svg
|
||||
color="var(--cpd-color-icon-info-primary)"
|
||||
fill="currentColor"
|
||||
height="1em"
|
||||
height="1rem"
|
||||
viewBox="0 0 24 24"
|
||||
width="1rem"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
@@ -836,7 +836,7 @@ exports[`<RoomSummaryCard /> renders the room summary 1`] = `
|
||||
<svg
|
||||
color="var(--cpd-color-icon-info-primary)"
|
||||
fill="currentColor"
|
||||
height="1em"
|
||||
height="1rem"
|
||||
viewBox="0 0 24 24"
|
||||
width="1rem"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
@@ -1515,7 +1515,7 @@ exports[`<RoomSummaryCard /> renders the room topic in the summary 1`] = `
|
||||
<svg
|
||||
color="var(--cpd-color-icon-info-primary)"
|
||||
fill="currentColor"
|
||||
height="1em"
|
||||
height="1rem"
|
||||
viewBox="0 0 24 24"
|
||||
width="1rem"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
@@ -1533,7 +1533,7 @@ exports[`<RoomSummaryCard /> renders the room topic in the summary 1`] = `
|
||||
<svg
|
||||
color="var(--cpd-color-icon-info-primary)"
|
||||
fill="currentColor"
|
||||
height="1em"
|
||||
height="1rem"
|
||||
viewBox="0 0 24 24"
|
||||
width="1rem"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
|
||||
Reference in New Issue
Block a user