mirror of
https://github.com/immich-app/immich.git
synced 2025-11-28 20:09:53 +09:00
chore(web): style tab button group and search bar (#8292)
* chore(web): style tab button group and search bar * responsive design
This commit is contained in:
@@ -4,13 +4,14 @@
|
||||
export let onSelect: (selected: string) => void;
|
||||
</script>
|
||||
|
||||
<div class=" flex bg-gray-100 dark:bg-gray-700 rounded-lg">
|
||||
<div class="flex bg-gray-200 dark:bg-immich-dark-gray rounded-2xl h-full">
|
||||
{#each filters as filter, index}
|
||||
<button
|
||||
class="flex py-2 px-4 {filter === selected
|
||||
? 'dark:bg-gray-900 bg-gray-300'
|
||||
: 'dark:hover:bg-gray-800 hover:bg-gray-200'} {index === 0 ? 'rounded-l-lg' : ''} {index === filters.length - 1
|
||||
? 'rounded-r-lg'
|
||||
class="text-sm px-4 {filter === selected
|
||||
? 'dark:bg-gray-700 bg-gray-300'
|
||||
: 'dark:hover:bg-gray-800 hover:bg-gray-300'} {index === 0 ? 'rounded-l-2xl' : ''} {index ===
|
||||
filters.length - 1
|
||||
? 'rounded-r-2xl'
|
||||
: ''}"
|
||||
on:click={() => onSelect(filter)}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user