feat(webui): add reading text size preferences (#6325)

* feat(webui): add reading text size preferences

* fix(webui): align loading skeletons with reading typography
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-20 16:33:05 +08:00
1 parent 816c9221a0
commit 282839cc65
48 files changed
+662 -120

No files matched your search

+2
View File
@@ -9,6 +9,7 @@ import { ChannelsSettings } from "@/components/settings/system/ChannelsSettings"
import { McpManagementDialog } from "@/components/settings/system/McpManagementDialog";
import { WorkspaceProjectPicker } from "@/components/thread/WorkspaceControls";
import { settings } from "@/dev/gallery/settings";
import { useReadingTypography } from "@/hooks/useReadingTypography";
import { fetchWorkspaceDirectories } from "@/lib/api";
import type { McpPresetInfo, NanobotFeatureInfo } from "@/lib/types";
@@ -22,6 +23,7 @@ const preset: McpPresetInfo = {
};
export function SkeletonFixture({ surface, loading }: { surface: string; loading: boolean }) {
useReadingTypography();
const [model, setModel] = useState("");
const [previewLoading, setPreviewLoading] = useState(loading);
const feature: NanobotFeatureInfo = {