use contained selects in settings modal
This commit is contained in:
parent
92e93309bf
commit
7406f80edd
1 changed files with 16 additions and 7 deletions
|
|
@ -128,12 +128,11 @@
|
||||||
open = false
|
open = false
|
||||||
onOpenChange?.(false)
|
onOpenChange?.(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Dialog
|
<Dialog
|
||||||
bind:open
|
bind:open
|
||||||
{...(onOpenChange ? { onOpenChange } : {})}
|
{...onOpenChange ? { onOpenChange } : {}}
|
||||||
title="@{username}"
|
title="@{username}"
|
||||||
description="Account Settings"
|
description="Account Settings"
|
||||||
>
|
>
|
||||||
|
|
@ -160,6 +159,7 @@
|
||||||
label="Avatar"
|
label="Avatar"
|
||||||
placeholder="Select an avatar"
|
placeholder="Select an avatar"
|
||||||
fullWidth
|
fullWidth
|
||||||
|
contained
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -170,6 +170,7 @@
|
||||||
label="Gender"
|
label="Gender"
|
||||||
placeholder="Select gender"
|
placeholder="Select gender"
|
||||||
fullWidth
|
fullWidth
|
||||||
|
contained
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Language Selection -->
|
<!-- Language Selection -->
|
||||||
|
|
@ -179,6 +180,7 @@
|
||||||
label="Language"
|
label="Language"
|
||||||
placeholder="Select language"
|
placeholder="Select language"
|
||||||
fullWidth
|
fullWidth
|
||||||
|
contained
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Theme Selection -->
|
<!-- Theme Selection -->
|
||||||
|
|
@ -188,6 +190,7 @@
|
||||||
label="Theme"
|
label="Theme"
|
||||||
placeholder="Select theme"
|
placeholder="Select theme"
|
||||||
fullWidth
|
fullWidth
|
||||||
|
contained
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Admin Mode (only for admins) -->
|
<!-- Admin Mode (only for admins) -->
|
||||||
|
|
@ -202,11 +205,11 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<Button variant="ghost" onclick={handleClose} disabled={saving}>Cancel</Button>
|
<Button variant="ghost" onclick={handleClose} disabled={saving}>Cancel</Button>
|
||||||
<Button type="submit" variant="primary" disabled={saving}>
|
<Button type="submit" variant="primary" disabled={saving}>
|
||||||
{saving ? 'Saving...' : 'Save Changes'}
|
{saving ? 'Saving...' : 'Save Changes'}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{/snippet}
|
{/snippet}
|
||||||
|
|
||||||
|
|
@ -305,4 +308,10 @@
|
||||||
padding-top: spacing.$unit-2x;
|
padding-top: spacing.$unit-2x;
|
||||||
border-top: 1px solid var(--border-color);
|
border-top: 1px solid var(--border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:global(fieldset) {
|
||||||
|
border: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue