style: improve icon alignment in figlet font selector tabs
- Switch from inline-block to flex items-center justify-center for filter tab buttons - Adjust icon spacing for better visual balance
This commit is contained in:
@@ -128,31 +128,31 @@ export function FontSelector({
|
|||||||
<button
|
<button
|
||||||
onClick={() => setFilter('all')}
|
onClick={() => setFilter('all')}
|
||||||
className={cn(
|
className={cn(
|
||||||
'flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors',
|
'flex-1 flex items-center justify-center px-3 py-1.5 text-xs font-medium rounded-md transition-colors',
|
||||||
filter === 'all' ? 'bg-background shadow-sm' : 'hover:bg-background/50'
|
filter === 'all' ? 'bg-background shadow-sm' : 'hover:bg-background/50'
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<List className="inline-block h-3 w-3 mr-1" />
|
<List className="h-3 w-3 mr-1.5" />
|
||||||
All
|
All
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
onClick={() => setFilter('favorites')}
|
onClick={() => setFilter('favorites')}
|
||||||
className={cn(
|
className={cn(
|
||||||
'flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors',
|
'flex-1 flex items-center justify-center px-3 py-1.5 text-xs font-medium rounded-md transition-colors',
|
||||||
filter === 'favorites' ? 'bg-background shadow-sm' : 'hover:bg-background/50'
|
filter === 'favorites' ? 'bg-background shadow-sm' : 'hover:bg-background/50'
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<Heart className="inline-block h-3 w-3 mr-1" />
|
<Heart className="h-3 w-3 mr-1.5" />
|
||||||
Favorites
|
Favorites
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
onClick={() => setFilter('recent')}
|
onClick={() => setFilter('recent')}
|
||||||
className={cn(
|
className={cn(
|
||||||
'flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors',
|
'flex-1 flex items-center justify-center px-3 py-1.5 text-xs font-medium rounded-md transition-colors',
|
||||||
filter === 'recent' ? 'bg-background shadow-sm' : 'hover:bg-background/50'
|
filter === 'recent' ? 'bg-background shadow-sm' : 'hover:bg-background/50'
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<Clock className="inline-block h-3 w-3 mr-1" />
|
<Clock className="h-3 w-3 mr-1.5" />
|
||||||
Recent
|
Recent
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user