diff --git a/playwright/shared-component-snapshots/avatar-avatarwithdetails--default-linux.png b/playwright/shared-component-snapshots/avatar-avatarwithdetails--default-linux.png
new file mode 100644
index 0000000000..ae339219e5
Binary files /dev/null and b/playwright/shared-component-snapshots/avatar-avatarwithdetails--default-linux.png differ
diff --git a/src/shared-components/avatar/AvatarWithDetails/AvatarWithDetails.module.css b/src/shared-components/avatar/AvatarWithDetails/AvatarWithDetails.module.css
index e03767c112..8659131ba2 100644
--- a/src/shared-components/avatar/AvatarWithDetails/AvatarWithDetails.module.css
+++ b/src/shared-components/avatar/AvatarWithDetails/AvatarWithDetails.module.css
@@ -9,22 +9,16 @@
display: flex;
align-items: center;
- border-radius: var(--cpd-space-3x);
+ border-radius: 12px;
background-color: var(--cpd-color-gray-200);
padding: var(--cpd-space-2x);
-
- div {
- margin-left: var(--cpd-space-2x);
- display: flex;
- flex-direction: column;
- }
+ gap: var(--cpd-space-2x);
.room {
display: inline-block;
font-weight: var(--cpd-font-weight-semibold);
font-size: var(--cpd-font-size-body-md);
- line-height: var(--cpd-font-size-heading-md);
overflow: hidden;
text-overflow: ellipsis;
@@ -33,6 +27,5 @@
.details {
font-size: var(--cpd-font-size-body-sm);
- line-height: var(--cpd-font-size-body-md);
}
}
diff --git a/src/shared-components/avatar/AvatarWithDetails/AvatarWithDetails.test.tsx b/src/shared-components/avatar/AvatarWithDetails/AvatarWithDetails.test.tsx
new file mode 100644
index 0000000000..f5d482613f
--- /dev/null
+++ b/src/shared-components/avatar/AvatarWithDetails/AvatarWithDetails.test.tsx
@@ -0,0 +1,21 @@
+/*
+Copyright 2025 New Vector Ltd.
+
+SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
+Please see LICENSE files in the repository root for full details.
+*/
+
+import { composeStories } from "@storybook/react-vite";
+import { render } from "jest-matrix-react";
+import React from "react";
+
+import * as stories from "./AvatarWithDetails.stories.tsx";
+
+const { Default } = composeStories(stories);
+
+describe("AvatarWithDetails", () => {
+ it("renders a textual event", () => {
+ const { container } = render();
+ expect(container).toMatchSnapshot();
+ });
+});
diff --git a/src/shared-components/avatar/AvatarWithDetails/AvatarWithDetails.tsx b/src/shared-components/avatar/AvatarWithDetails/AvatarWithDetails.tsx
index 0ae0679251..e8186695e5 100644
--- a/src/shared-components/avatar/AvatarWithDetails/AvatarWithDetails.tsx
+++ b/src/shared-components/avatar/AvatarWithDetails/AvatarWithDetails.tsx
@@ -10,6 +10,7 @@ import React from "react";
import classNames from "classnames";
import styles from "./AvatarWithDetails.module.css";
+import { Flex } from "../../utils/Flex";
export type AvatarWithDetailsProps = {
/**
@@ -48,10 +49,10 @@ export function AvatarWithDetails({
return (
{avatar}
-
+ {roomName}{details}
-
+
);
}
diff --git a/src/shared-components/avatar/AvatarWithDetails/__snapshots__/AvatarWithDetails.test.tsx.snap b/src/shared-components/avatar/AvatarWithDetails/__snapshots__/AvatarWithDetails.test.tsx.snap
new file mode 100644
index 0000000000..b676c729a6
--- /dev/null
+++ b/src/shared-components/avatar/AvatarWithDetails/__snapshots__/AvatarWithDetails.test.tsx.snap
@@ -0,0 +1,28 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`AvatarWithDetails renders a textual event 1`] = `
+
+
+
+
+
+ Room Name
+
+
+ Details about the avatar go here
+
+
+
+
+`;
diff --git a/src/toasts/IncomingCallToast.tsx b/src/toasts/IncomingCallToast.tsx
index c99bca0761..4bad61b9f7 100644
--- a/src/toasts/IncomingCallToast.tsx
+++ b/src/toasts/IncomingCallToast.tsx
@@ -8,7 +8,7 @@ Please see LICENSE files in the repository root for full details.
import React, { type JSX, useCallback, useEffect, useState } from "react";
import { type Room, type MatrixEvent, type RoomMember, RoomEvent, EventType } from "matrix-js-sdk/src/matrix";
-import { Button, Label, ToggleInput, Tooltip, TooltipProvider } from "@vector-im/compound-web";
+import { Button, ToggleInput, Tooltip, TooltipProvider } from "@vector-im/compound-web";
import VideoCallIcon from "@vector-im/compound-design-tokens/assets/web/icons/video-call-solid";
import CheckIcon from "@vector-im/compound-design-tokens/assets/web/icons/check";
import CrossIcon from "@vector-im/compound-design-tokens/assets/web/icons/close";