Skip to content

Commit 4f19450

Browse files
authored
Merge pull request #2675 from appwrite/fix-SER-SER-414-truncate-long-labels
2 parents 71db5d6 + 38cf37d commit 4f19450

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/lib/components/permissions/row.svelte

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,20 +221,26 @@
221221
<Typography.Text
222222
size="m"
223223
color="--fgcolor-neutral-primary">
224-
{data.customName}
224+
{formatName(
225+
data.customName ?? '',
226+
$isSmallViewport ? 20 : 28
227+
)}
225228
</Typography.Text>
226229
</Layout.Stack>
227230
{#if data.roleName}
228231
<InteractiveText
229232
isVisible
230233
variant="copy"
231-
text={data.roleName}
234+
text={formatName(
235+
data.roleName,
236+
$isSmallViewport ? 20 : 28
237+
)}
232238
value={data.roleName} />
233239
{:else}
234240
<InteractiveText
235241
isVisible
236242
variant="copy"
237-
text={role}
243+
text={formatName(role, $isSmallViewport ? 20 : 28)}
238244
value={role} />
239245
{/if}
240246
</Layout.Stack>

0 commit comments

Comments
 (0)