Fix long display names for users and rooms with word-break (#480)

This commit is contained in:
Borislav Pantaleev
2025-04-11 22:49:27 +03:00
committed by GitHub
parent 4f488e5a39
commit 107d9f4e39
2 changed files with 30 additions and 5 deletions

View File

@@ -412,6 +412,10 @@ export const RoomList = (props: ListProps) => {
</WrapperField>
<FunctionField
source="name"
sx={{
wordBreak: "break-word",
overflowWrap: "break-word",
}}
render={record => record["name"] || record["canonical_alias"] || record["id"]}
label="resources.rooms.fields.name"
/>