make it mobile responsive

This commit is contained in:
Harsh Mahajan
2025-11-05 13:48:23 +05:30
parent 4d14048506
commit fa128aef6e
2 changed files with 7 additions and 14 deletions
@@ -20,6 +20,7 @@
import { IconPlus, IconX } from '@appwrite.io/pink-icons-svelte';
import type { PinkColumn } from '$lib/helpers/types';
import { Card } from '$lib/components';
import TableScroll from '$lib/elements/table/tableScroll.svelte';
export let withCreate = false;
export let permissions: string[] = [];
@@ -124,7 +125,7 @@
</script>
{#if [...$groups]?.length}
<div class="table-wrapper">
<TableScroll>
<Table.Root {columns} let:root>
<svelte:fragment slot="header" let:root>
<Table.Header.Cell column="role" {root}>Role</Table.Header.Cell>
@@ -174,7 +175,7 @@
</Table.Row.Base>
{/each}
</Table.Root>
</div>
</TableScroll>
<div>
<Actions
@@ -210,14 +211,3 @@
</Layout.Stack>
</Card>
{/if}
<style lang="scss">
.table-wrapper {
scrollbar-width: none;
-ms-overflow-style: none;
&::-webkit-scrollbar {
display: none;
}
}
</style>
+4 -1
View File
@@ -300,7 +300,10 @@
size="xs"
variant="m-400"
color="--fgcolor-neutral-secondary">
Email: {formatName(data.email, $isSmallViewport ? 24 : 32)}
Email: {formatName(
data.email,
$isSmallViewport ? 24 : 32
)}
</Typography.Text>
{/if}
{#if data.phone}