UI: fix padding in usersettings

This commit is contained in:
Pieter Vander Vennet 2024-09-04 00:31:19 +02:00
parent bdea39d942
commit f0e802eba7
2 changed files with 6 additions and 2 deletions

View file

@ -20,8 +20,12 @@
if (fullscreen) { if (fullscreen) {
dialogClass += " h-full-child" dialogClass += " h-full-child"
} }
let bodyClass = "h-full p-4 md:p-5 space-y-4 flex-1 overflow-y-auto overscroll-contain" export let bodyPadding = "p-4 md:p-5 "
let bodyClass = bodyPadding+" h-full space-y-4 flex-1 overflow-y-auto overscroll-contain"
let headerClass = "flex justify-between items-center p-2 px-4 md:px-5 rounded-t-lg"; let headerClass = "flex justify-between items-center p-2 px-4 md:px-5 rounded-t-lg";
</script> </script>
{#if !onlyLink} {#if !onlyLink}

View file

@ -95,7 +95,7 @@
</LoginToggle> </LoginToggle>
<Page {onlyLink} shown={pg.usersettings}> <Page {onlyLink} shown={pg.usersettings} bodyPadding="p-0">
<svelte:fragment slot="header"> <svelte:fragment slot="header">
<CogIcon/> <CogIcon/>
<Tr t={UserRelatedState.usersettingsConfig.title.GetRenderValue({})} /> <Tr t={UserRelatedState.usersettingsConfig.title.GetRenderValue({})} />