Skip to content

Commit

Permalink
Tweaked search bar styling
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Jan 25, 2024
1 parent 5ae5683 commit c16257a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
export let table: Readable<Table<TData>>;
</script>

<div class="flex items-center justify-between">
<div class="flex items-center justify-between space-x-2">
<div class="flex flex-1 items-center space-x-2">
<slot />
</div>

<DataTableViewOptions {table} />
<div class="ml-auto flex">
<DataTableViewOptions {table} />
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<DropdownMenu.Root>
<DropdownMenu.Trigger asChild let:builder>
<Button variant="outline" size="sm" class="ml-auto hidden h-8 lg:flex" builders={[builder]}>
<Button variant="outline" size="sm" class="h-8" builders={[builder]}>
<IconViewColumn class="mr-2 h-4 w-4" />
View
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<DataTable.Toolbar {table}>
<slot name="toolbar">
<SearchInput
class="h-8 w-[150px] lg:w-[250px]"
class="h-8 w-80 lg:w-[350px] xl:w-[550px]"
value={$filter}
on:input={onFilterInputChanged}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
<DataTable.Toolbar {table}>
<slot name="toolbar">
<SearchInput
class="h-8 w-[120px] lg:w-[350px] xl:w-[550px]"
class="h-8 w-80 lg:w-[350px] xl:w-[550px]"
value={$filter}
on:input={onFilterInputChanged}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<EventsDataTable filter={filterWithFaceted} {time} on:rowclick={onRowClick}>
<svelte:fragment slot="toolbar">
<SearchInput
class="h-8 w-[150px] lg:w-[250px]"
class="h-8 w-80 lg:w-[350px] xl:w-[550px]"
value={$filter}
on:input={onFilterInputChanged}
/>
Expand Down

0 comments on commit c16257a

Please sign in to comment.