feat: add a label to the kind filter button (#527)
Co-authored-by: Daniel Vergara <daniel.omar.vergara@gmail.com>
This commit is contained in:
@@ -74,16 +74,17 @@ export default function KindFilter({
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="titlebar-icon"
|
||||
className="relative"
|
||||
className="relative w-fit px-3"
|
||||
onClick={() => {
|
||||
if (isSmallScreen) {
|
||||
setOpen(true)
|
||||
}
|
||||
}}
|
||||
>
|
||||
<ListFilter />
|
||||
<ListFilter size={16} />
|
||||
{t('Filter')}
|
||||
{isDifferentFromSaved && (
|
||||
<div className="absolute size-2 rounded-full bg-primary right-2 top-2.5 ring-2 ring-background" />
|
||||
<div className="absolute size-2 rounded-full bg-primary left-7 top-2 ring-2 ring-background" />
|
||||
)}
|
||||
</Button>
|
||||
)
|
||||
@@ -150,7 +151,7 @@ export default function KindFilter({
|
||||
checked={isPersistent}
|
||||
onCheckedChange={(checked) => setIsPersistent(!!checked)}
|
||||
/>
|
||||
<span className="text-sm">{t('Remember my choice')}</span>
|
||||
<span className="text-sm">{t('Set as default filter')}</span>
|
||||
</Label>
|
||||
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user