design: improve theme page container scroll
This commit is contained in:
1 parent
1d8a623024
commit
6a1635619e
3 files changed
+18
-5
No files matched your search
@@ -388,7 +388,8 @@
|
|||||||
"default": "Default",
|
"default": "Default",
|
||||||
"classic": "Classic",
|
"classic": "Classic",
|
||||||
"imported": "Your Theme",
|
"imported": "Your Theme",
|
||||||
"new": "New Theme"
|
"new": "New Theme",
|
||||||
|
"presets": "Presets"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"community": {
|
"community": {
|
||||||
|
|||||||
@@ -56,9 +56,19 @@
|
|||||||
|
|
||||||
<div class="flex flex-col gap-4 h-full">
|
<div class="flex flex-col gap-4 h-full">
|
||||||
<Header pageHeader>{$t('routes.theme.title')}</Header>
|
<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
|
<div
|
||||||
class="grid grid-cols-1 min-[512px]:grid-cols-2 2xl:grid-cols-3 3xl:grid-cols-4
|
class="grid grid-cols-1 @md:grid-cols-2 @xl:grid-cols-3 @3xl:grid-cols-4
|
||||||
gap-4 overflow-auto max-h-72"
|
gap-2"
|
||||||
>
|
>
|
||||||
{#each $themeData.themes as theme}
|
{#each $themeData.themes as theme}
|
||||||
<ThemePreset bind:theme />
|
<ThemePreset bind:theme />
|
||||||
@@ -88,6 +98,7 @@
|
|||||||
</Material>
|
</Material>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
</Material>
|
||||||
<div class="flex items-center gap-4">
|
<div class="flex items-center gap-4">
|
||||||
<Button
|
<Button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
class="{theme.id == $themeData.currentTheme
|
class="{theme.id == $themeData.currentTheme
|
||||||
? 'ring-2 ring-inset ring-primary-900 dark:ring-primary-100'
|
? 'ring-2 ring-inset ring-primary-900 dark:ring-primary-100'
|
||||||
: ''} flex relative cursor-pointer h-full flex-col text-left p-0.5"
|
: ''} flex relative cursor-pointer h-full flex-col text-left p-0.5"
|
||||||
|
rounding="xl"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
style="{calculateVars(theme)};"
|
style="{calculateVars(theme)};"
|
||||||
@@ -67,7 +68,7 @@
|
|||||||
type: 'secondary',
|
type: 'secondary',
|
||||||
content: $t('common.cancel'),
|
content: $t('common.cancel'),
|
||||||
}),
|
}),
|
||||||
{
|
action({
|
||||||
close: true,
|
close: true,
|
||||||
content: $t('routes.theme.preset.delete.confirm'),
|
content: $t('routes.theme.preset.delete.confirm'),
|
||||||
type: 'danger',
|
type: 'danger',
|
||||||
@@ -81,7 +82,7 @@
|
|||||||
$themeData.currentTheme = 0
|
$themeData.currentTheme = 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
}),
|
||||||
],
|
],
|
||||||
type: 'error',
|
type: 'error',
|
||||||
body: '',
|
body: '',
|
||||||
|
|||||||
Reference in new issue
Block a user