A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
fix(ui): fix the colors of buttons in the settings page
Mohamed Bassem3d6c83d5c2be
diff --git a/apps/web/app/settings/broken-links/page.tsx b/apps/web/app/settings/broken-links/page.tsxindex 35351918..82620b0a 100644--- a/apps/web/app/settings/broken-links/page.tsx+++ b/apps/web/app/settings/broken-links/page.tsx@@ -115,13 +115,12 @@ export default function BrokenLinksPage() {{t("actions.recrawl")}</ActionButton><ActionButton- variant="destructive"+ variant="ghostDestructive"onClick={() => deleteBookmark({ bookmarkId: b.id })}loading={isDeleting}className="flex items-center gap-2"><Trash2 className="size-4" />- {t("actions.delete")}</ActionButton></TableCell></TableRow>diff --git a/apps/web/components/dashboard/rules/RuleEngineRuleList.tsx b/apps/web/components/dashboard/rules/RuleEngineRuleList.tsxindex 32262b31..ce654052 100644--- a/apps/web/components/dashboard/rules/RuleEngineRuleList.tsx+++ b/apps/web/components/dashboard/rules/RuleEngineRuleList.tsx@@ -127,11 +127,7 @@ export default function RuleList({</ActionButton>)}>- <Button- variant="ghost"- size="icon"- className="text-red-500 hover:text-red-600"- >+ <Button variant="ghostDestructive" size="icon"><Trash2 className="h-4 w-4" /></Button></ActionConfirmingDialog>diff --git a/apps/web/components/settings/BackupSettings.tsx b/apps/web/components/settings/BackupSettings.tsxindex a4ad6a37..525cfc1e 100644--- a/apps/web/components/settings/BackupSettings.tsx+++ b/apps/web/components/settings/BackupSettings.tsx@@ -321,7 +321,7 @@ function BackupRow({ backup }: { backup: z.infer<typeof zBackupSchema> }) {</ActionButton>)}>- <Button variant="ghost" disabled={isDeleting}>+ <Button variant="ghostDestructive" disabled={isDeleting}><Trash2 className="size-4" /></Button></ActionConfirmingDialog>diff --git a/apps/web/components/settings/FeedSettings.tsx b/apps/web/components/settings/FeedSettings.tsxindex d8ba7f88..420cb2f1 100644--- a/apps/web/components/settings/FeedSettings.tsx+++ b/apps/web/components/settings/FeedSettings.tsx@@ -457,7 +457,7 @@ export function FeedRow({ feed }: { feed: ZFeed }) {</ActionButton>)}>- <Button variant="destructive" disabled={isDeleting}>+ <Button variant="ghostDestructive" disabled={isDeleting}><Trash2 className="size-4" /></Button></ActionConfirmingDialog>diff --git a/apps/web/components/settings/ImportSessionCard.tsx b/apps/web/components/settings/ImportSessionCard.tsxindex f62a00dd..361ad953 100644--- a/apps/web/components/settings/ImportSessionCard.tsx+++ b/apps/web/components/settings/ImportSessionCard.tsx@@ -300,7 +300,7 @@ export function ImportSessionCard({ session }: ImportSessionCardProps) {)}><Button- variant="destructive"+ variant="destructiveOutline"size="sm"disabled={deleteSession.isPending}>diff --git a/apps/web/components/settings/SubscriptionSettings.tsx b/apps/web/components/settings/SubscriptionSettings.tsxindex 43c88208..9c533e6c 100644--- a/apps/web/components/settings/SubscriptionSettings.tsx+++ b/apps/web/components/settings/SubscriptionSettings.tsx@@ -186,7 +186,8 @@ export default function SubscriptionSettings() {<ButtononClick={() => createCheckoutSession.mutate()}disabled={isLoading}- className="bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700"+ size="lg"+ className="shadow-md transition-all hover:scale-[1.02] hover:shadow-lg active:scale-[0.98]">{isLoading && (<Loader2 className="mr-2 h-4 w-4 animate-spin" />diff --git a/apps/web/components/settings/UserAvatar.tsx b/apps/web/components/settings/UserAvatar.tsxindex 410850fb..f83f8ece 100644--- a/apps/web/components/settings/UserAvatar.tsx+++ b/apps/web/components/settings/UserAvatar.tsx@@ -78,7 +78,7 @@ export default function UserAvatar() {<UserAvatarImageimage={image}name={t("settings.info.avatar.title")}- fallback={<User className="h-7 w-7 text-muted-foreground" />}+ fallback={<User className="h-7 w-7" />}className="h-full w-full"/></div>diff --git a/packages/shared-react/components/ui/button.tsx b/packages/shared-react/components/ui/button.tsxindex 5bc73bc3..371907d3 100644--- a/packages/shared-react/components/ui/button.tsx+++ b/packages/shared-react/components/ui/button.tsx@@ -21,6 +21,8 @@ const buttonVariants = cva("bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground focus-visible:ring-0 focus-visible:ring-offset-0",+ ghostDestructive:+ "text-destructive hover:bg-destructive/10 hover:text-destructive focus-visible:ring-0 focus-visible:ring-offset-0",border: "border border-input hover:bg-accent",link: "text-primary underline-offset-4 hover:underline",},