fix: better setting wrapping, close #423

This commit is contained in:
Xylight committed 2024-09-07 11:01:17 -07:00
1 parent cbe3cbcbfc
commit e1fc446e22
1 file changed
+9 -4
+9 -4
View File
@@ -18,7 +18,7 @@
</script>
<div
class="flex flex-col w-full justify-between gap-2 max-w-full {$$props.mainClass}"
class="flex flex-col w-full justify-between gap-2 max-w-full @container/setting {$$props.mainClass}"
>
{#if Object.values(supportedPlatforms).some((v) => v == false)}
<div class="flex items-center gap-2 flex-wrap">
@@ -42,8 +42,12 @@
{/if}
</div>
{/if}
<div class="flex flex-row items-center gap-2 {$$props.itemsClass}">
<div class="flex flex-col gap-0.5 flex-[2] {$$props.class}">
<div
class="flex flex-col @md/setting:flex-row items-center gap-2 {$$props.itemsClass}"
>
<div
class="flex flex-col gap-0.5 flex-[2] w-full flex-shrink-0 min-w-48 {$$props.class}"
>
<h1 class="font-medium text-base"><slot name="title" /></h1>
{#if $$slots.description}
<p class="text-slate-800 dark:text-zinc-200 text-sm">
@@ -53,7 +57,8 @@
</div>
{#if $$slots.default}
<div
class="w-full flex flex-col gap-2 flex-1 items-end max-w-full {$$props.optionClass}"
class="w-full flex flex-col gap-2 flex-1 max-w-full
@md/setting:items-end flex-shrink-0 {$$props.optionClass}"
>
<slot />
</div>