From 2a4cfc4069a7da7c195c3e337f48c45dd7676575 Mon Sep 17 00:00:00 2001 From: Innei Date: Tue, 7 Oct 2025 01:24:13 +0800 Subject: [PATCH] fix(pic-view): masonry button icon Signed-off-by: Innei --- .../layouts/buttons/SwitchToMasonryButton.tsx | 91 +++++++++---------- 1 file changed, 43 insertions(+), 48 deletions(-) diff --git a/apps/desktop/layer/renderer/src/modules/entry-column/layouts/buttons/SwitchToMasonryButton.tsx b/apps/desktop/layer/renderer/src/modules/entry-column/layouts/buttons/SwitchToMasonryButton.tsx index 08234d8fe..06b822423 100644 --- a/apps/desktop/layer/renderer/src/modules/entry-column/layouts/buttons/SwitchToMasonryButton.tsx +++ b/apps/desktop/layer/renderer/src/modules/entry-column/layouts/buttons/SwitchToMasonryButton.tsx @@ -1,5 +1,4 @@ import { useMobile } from "@follow/components/hooks/useMobile.js" -import { AutoResizeHeight } from "@follow/components/ui/auto-resize-height/index.js" import { ActionButton } from "@follow/components/ui/button/index.js" import { SegmentGroup, SegmentItem } from "@follow/components/ui/segment/index.js" import { Switch } from "@follow/components/ui/switch/index.js" @@ -39,57 +38,53 @@ export const SwitchToMasonryButton = () => { "data-[state=closed]:slide-out-to-top-5 data-[state=open]:slide-in-from-top-5", "data-[state=closed]:slide-in-from-top-0 data-[state=open]:slide-in-from-top-0", "transition-all duration-200 ease-in-out", - "px-3 py-2", + "p-3", )} > - -
-
- - { - setUISetting("pictureViewMasonry", v === "masonry") - }} - > - - - {t("entry_list_header.grid")} -
- } - /> - - - {t("entry_list_header.masonry")} -
- } - /> - - -
- - { - setUISetting("pictureViewImageOnly", checked) - }} +
+
+ + { + setUISetting("pictureViewMasonry", v === "masonry") + }} + > + + + {t("entry_list_header.grid")} +
+ } /> -
+ + + {t("entry_list_header.masonry")} +
+ } + /> + -
+
+ + { + setUISetting("pictureViewImageOnly", checked) + }} + /> +
+