Skip to content

Commit a2a93e8

Browse files
committed
fix: permissions action modal not shown correctly.
1 parent 3c2c49b commit a2a93e8

File tree

1 file changed

+20
-23
lines changed

1 file changed

+20
-23
lines changed

src/lib/components/permissions/permissions.svelte

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
import { writable } from 'svelte/store';
1717
import Actions from './actions.svelte';
1818
import Row from './row.svelte';
19-
import { Icon, Selector, Table } from '@appwrite.io/pink-svelte';
19+
import { Icon, Layout, Selector, Table, Typography } from '@appwrite.io/pink-svelte';
2020
import { IconPlus, IconX } from '@appwrite.io/pink-icons-svelte';
2121
import type { PinkColumn } from '$lib/helpers/types';
22+
import { Card } from '$lib/components';
2223
2324
export let withCreate = false;
2425
export let hideOnClick = false;
@@ -206,28 +207,24 @@
206207
</Actions>
207208
</div>
208209
{:else}
209-
<article class="card u-grid u-cross-center u-width-full-line dashed">
210-
<div class="u-flex u-cross-center u-flex-vertical u-main-center u-flex">
211-
<div class="common-section">
212-
<Actions
213-
bind:showLabel
214-
bind:showCustom
215-
bind:showTeam
216-
bind:showUser
217-
{groups}
218-
{hideOnClick}
219-
on:create={create}
220-
let:toggle>
221-
<Button compact icon on:click={toggle}>
222-
<Icon icon={IconPlus} size="s" />
223-
</Button>
224-
</Actions>
225-
</div>
226-
<div class="common-section">
227-
<span class="text"> Add a role to get started </span>
228-
</div>
229-
</div>
230-
</article>
210+
<Card variant="secondary">
211+
<Layout.Stack direction="column" alignItems="center" gap="xl">
212+
<Actions
213+
bind:showLabel
214+
bind:showCustom
215+
bind:showTeam
216+
bind:showUser
217+
{groups}
218+
{hideOnClick}
219+
on:create={create}
220+
let:toggle>
221+
<Button secondary icon on:click={toggle}>
222+
<Icon icon={IconPlus} size="s" />
223+
</Button>
224+
</Actions>
225+
<Typography.Text>Add a role to get started</Typography.Text>
226+
</Layout.Stack>
227+
</Card>
231228
{/if}
232229

233230
<style lang="scss">

0 commit comments

Comments
 (0)