From 6ac4d1652ca88d96212dfb485b7ac11ff94a4914 Mon Sep 17 00:00:00 2001 From: Jason Date: Sat, 29 Nov 2025 21:18:51 +0800 Subject: [PATCH] fix(skills): use theme-aware glass-card class for light mode compatibility Replace hardcoded dark mode styles (bg-gray-900/40, border-white/10) with the unified glass-card class that adapts to both light and dark themes. --- src/components/skills/RepoManagerPanel.tsx | 6 +++--- src/components/skills/SkillCard.tsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/skills/RepoManagerPanel.tsx b/src/components/skills/RepoManagerPanel.tsx index 69914e2cf..c58ec570b 100644 --- a/src/components/skills/RepoManagerPanel.tsx +++ b/src/components/skills/RepoManagerPanel.tsx @@ -90,7 +90,7 @@ export function RepoManagerPanel({ onClose={onClose} > {/* 添加仓库表单 */} -
+

添加技能仓库

@@ -139,7 +139,7 @@ export function RepoManagerPanel({ {t("skills.repo.list")} {repos.length === 0 ? ( -
+

{t("skills.repo.empty")}

@@ -149,7 +149,7 @@ export function RepoManagerPanel({ {repos.map((repo) => (
diff --git a/src/components/skills/SkillCard.tsx b/src/components/skills/SkillCard.tsx index 8fe82902a..4a22566d7 100644 --- a/src/components/skills/SkillCard.tsx +++ b/src/components/skills/SkillCard.tsx @@ -57,7 +57,7 @@ export function SkillCard({ skill, onInstall, onUninstall }: SkillCardProps) { skill.directory.trim().toLowerCase() !== skill.name.trim().toLowerCase(); return ( - +
@@ -96,7 +96,7 @@ export function SkillCard({ skill, onInstall, onUninstall }: SkillCardProps) { {skill.description || t("skills.noDescription")}

- + {skill.readmeUrl && (