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:
Cody Tseng
2025-09-02 22:38:17 +08:00
committed by GitHub
parent 3c657dfa8c
commit 45e20329a3
16 changed files with 20 additions and 19 deletions

View File

@@ -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