Skip to content

Commit 4e5a353

Browse files
committed
💄 Fix search input padding without icons for svelte lists
1 parent 77064dc commit 4e5a353

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/components/List/List.svelte

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@
8181
class={wrapperClasses}
8282
>
8383
{#if showSearchBar}
84-
<Input
85-
type="search"
86-
placeholder={searchBarPlaceholder}
87-
onInput={search}
88-
>
89-
{#if showSearchBarIcon}
90-
{@html searchIcon}
91-
{/if}
92-
</Input>
84+
{#if showSearchBarIcon}
85+
<Input type="search" placeholder={searchBarPlaceholder} onInput={search}>
86+
{#if showSearchBarIcon}
87+
{@html searchIcon}
88+
{/if}
89+
</Input>
90+
{:else}
91+
<Input type="search" placeholder={searchBarPlaceholder} onInput={search} />
92+
{/if}
9393
{/if}
9494
<ul
9595
class={classes}

0 commit comments

Comments
 (0)