mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #2675 from appwrite/fix-SER-SER-414-truncate-long-labels
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user