Merge pull request #2675 from appwrite/fix-SER-SER-414-truncate-long-labels

This commit is contained in:
Darshan
2025-12-06 11:44:36 +05:30
committed by GitHub
+9 -3
View File
@@ -221,20 +221,26 @@
<Typography.Text
size="m"
color="--fgcolor-neutral-primary">
{data.customName}
{formatName(
data.customName ?? '',
$isSmallViewport ? 20 : 28
)}
</Typography.Text>
</Layout.Stack>
{#if data.roleName}
<InteractiveText
isVisible
variant="copy"
text={data.roleName}
text={formatName(
data.roleName,
$isSmallViewport ? 20 : 28
)}
value={data.roleName} />
{:else}
<InteractiveText
isVisible
variant="copy"
text={role}
text={formatName(role, $isSmallViewport ? 20 : 28)}
value={role} />
{/if}
</Layout.Stack>