design: improve theme page container scroll

This commit is contained in:
Xylight committed 2024-09-02 15:25:53 -07:00
1 parent 1d8a623024
commit 6a1635619e
3 files changed
+18 -5

No files matched your search

+2 -1
View File
@@ -388,7 +388,8 @@
"default": "Default",
"classic": "Classic",
"imported": "Your Theme",
"new": "New Theme"
"new": "New Theme",
"presets": "Presets"
}
},
"community": {
+13 -2
View File
@@ -56,9 +56,19 @@
<div class="flex flex-col gap-4 h-full">
<Header pageHeader>{$t('routes.theme.title')}</Header>
<h3
class="relative top-[26px] z-10 left-6 font-medium text-sm bg-slate-25 dark:bg-zinc-925 w-max px-1"
>
{$t('routes.theme.preset.presets')}
</h3>
<Material
color="transparent"
rounding="2xl"
class="overflow-auto max-h-96 relative @container"
>
<div
class="grid grid-cols-1 min-[512px]:grid-cols-2 2xl:grid-cols-3 3xl:grid-cols-4
gap-4 overflow-auto max-h-72"
class="grid grid-cols-1 @md:grid-cols-2 @xl:grid-cols-3 @3xl:grid-cols-4
gap-2"
>
{#each $themeData.themes as theme}
<ThemePreset bind:theme />
@@ -88,6 +98,7 @@
</Material>
</button>
</div>
</Material>
<div class="flex items-center gap-4">
<Button
on:click={() => {
+3 -2
View File
@@ -15,6 +15,7 @@
class="{theme.id == $themeData.currentTheme
? 'ring-2 ring-inset ring-primary-900 dark:ring-primary-100'
: ''} flex relative cursor-pointer h-full flex-col text-left p-0.5"
rounding="xl"
>
<div
style="{calculateVars(theme)};"
@@ -67,7 +68,7 @@
type: 'secondary',
content: $t('common.cancel'),
}),
{
action({
close: true,
content: $t('routes.theme.preset.delete.confirm'),
type: 'danger',
@@ -81,7 +82,7 @@
$themeData.currentTheme = 0
}
},
},
}),
],
type: 'error',
body: '',