Remove unnecessary extra spacing here

This commit is contained in:
Harsh Mahajan committed 2025-09-30 15:44:20 +05:30
1 parent 5cb9b634f9
commit 448ab66517
1 file changed
+11 -2
+11 -2
View File
@@ -22,8 +22,13 @@
<Layout.Stack>
{#if $$slots.title || $$slots.subtitle}
<header class="form-header" class:hide-divider={!$$slots.subtitle}>
<Typography.Title><slot name="title" /></Typography.Title>
<header
class="form-header"
class:hide-divider={!$$slots.subtitle}
class:only-subtitle={!$$slots.title && $$slots.subtitle}>
{#if $$slots.title}
<Typography.Title><slot name="title" /></Typography.Title>
{/if}
{#if $$slots.subtitle}
<p>
<slot name="subtitle" />
@@ -44,4 +49,8 @@
padding-block-end: 0;
border-block-end: none;
}
.only-subtitle {
margin-block-end: 0.5rem;
}
</style>