fix: restore consistent input field sizing and alignment in FieldInline

This commit is contained in:
deveshanim3
2026-04-18 20:15:01 +05:30
parent 53954aae89
commit e37da856e2
+2 -2
View File
@@ -12,11 +12,11 @@
<div class="flex flex-col gap-2 {props.class}"> <div class="flex flex-col gap-2 {props.class}">
<div class="flex items-center justify-between w-full gap-2"> <div class="flex items-center justify-between w-full gap-2">
{#if props.label} {#if props.label}
<label class="flex items-center gap-2 max-w-[80%] md:max-w-none"> <label class="flex items-center gap-2 min-w-[30%] max-w-[80%] md:max-w-none">
{@render props.label()} {@render props.label()}
</label> </label>
{/if} {/if}
<div class="flex items-center gap-2 justify-end shrink-0"> <div class="flex items-center gap-2 justify-end grow">
{#if props.input} {#if props.input}
{@render props.input()} {@render props.input()}
{/if} {/if}