feat: explore (#85)

This commit is contained in:
Cody Tseng
2025-02-11 16:33:31 +08:00
committed by GitHub
parent 80893ec033
commit b91f46723e
35 changed files with 811 additions and 179 deletions

View File

@@ -32,9 +32,15 @@ export default function SaveRelayDropdownMenu({
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="ghost" size={atTitlebar ? 'titlebar-icon' : 'icon'}>
<Star className={alreadySaved ? 'fill-primary stroke-primary' : ''} />
</Button>
{atTitlebar ? (
<Button variant="ghost" size="titlebar-icon">
<Star className={alreadySaved ? 'fill-primary stroke-primary' : ''} />
</Button>
) : (
<button className="enabled:hover:text-primary [&_svg]:size-5">
<Star className={alreadySaved ? 'fill-primary stroke-primary' : ''} />
</button>
)}
</DropdownMenuTrigger>
<DropdownMenuContent>
<DropdownMenuLabel>{t('Save to')} ...</DropdownMenuLabel>