fix(media-server): stack user details reliably
This commit is contained in:
2 files changed
+20
-6
No files matched your search
@@ -44,6 +44,20 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.userIdentity {
|
||||||
|
display: grid;
|
||||||
|
flex: 1 1 0;
|
||||||
|
grid-template-rows: auto auto;
|
||||||
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
row-gap: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.userIdentityLine {
|
||||||
|
min-width: 0;
|
||||||
|
line-height: 1.2;
|
||||||
|
}
|
||||||
|
|
||||||
.sessionRow {
|
.sessionRow {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
|
|||||||
@@ -304,16 +304,16 @@ export default function MediaServerWidget({
|
|||||||
>
|
>
|
||||||
{columnVisibility.user && (
|
{columnVisibility.user && (
|
||||||
<Table.Td>
|
<Table.Td>
|
||||||
<Group gap="xs" wrap="nowrap">
|
<Group gap="xs" wrap="nowrap" style={{ minWidth: 0 }}>
|
||||||
<Avatar size={28} src={session.user?.profilePictureUrl} />
|
<Avatar size={28} src={session.user?.profilePictureUrl} style={{ flexShrink: 0 }} />
|
||||||
<Stack gap={0} className={classes.cellContent}>
|
<div className={classes.userIdentity}>
|
||||||
<Text size="xs" truncate>
|
<Text component="div" size="xs" truncate className={classes.userIdentityLine}>
|
||||||
{session.user?.username ?? t("items.unknownUser")}
|
{session.user?.username ?? t("items.unknownUser")}
|
||||||
</Text>
|
</Text>
|
||||||
<Text size="10px" c="dimmed" truncate>
|
<Text component="div" size="10px" c="dimmed" truncate className={classes.userIdentityLine}>
|
||||||
{session.sessionName}
|
{session.sessionName}
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</div>
|
||||||
</Group>
|
</Group>
|
||||||
</Table.Td>
|
</Table.Td>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in new issue
Block a user