Fix select overflow

This commit is contained in:
I Made Setia Baruna 2021-01-09 02:24:43 +08:00
parent 5badfa804d
commit cd549f3687
2 changed files with 2 additions and 2 deletions

View file

@ -128,7 +128,7 @@
{/if}
<input
bind:this={input}
class={`bg-transparent focus:outline-none h-full ${nothingSelected ? 'text-gray-500' : 'text-white'}`}
class={`bg-transparent focus:outline-none h-full max-w-full ${nothingSelected ? 'text-gray-500' : 'text-white'}`}
{placeholder}
value={nothingSelected || focused ? search : label}
on:input={onInput} />

View file

@ -130,7 +130,7 @@
{/if}
<input
bind:this={input}
class={`bg-transparent focus:outline-none h-full ${nothingSelected ? 'text-gray-500' : 'text-white'}`}
class={`bg-transparent focus:outline-none h-full max-w-full ${nothingSelected ? 'text-gray-500' : 'text-white'}`}
{placeholder}
value={nothingSelected || focused ? search : label}
on:input={onInput} />