JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix:修复技能页面安装按钮样式
xiaoyao42f96e5391dc43
diff --git a/jiuwenswarm/channels/web/frontend/src/components/SkillPanel/index.tsx b/jiuwenswarm/channels/web/frontend/src/components/SkillPanel/index.tsxindex 861af42ef1..db10e383e7 100644--- a/jiuwenswarm/channels/web/frontend/src/components/SkillPanel/index.tsx+++ b/jiuwenswarm/channels/web/frontend/src/components/SkillPanel/index.tsx@@ -1538,8 +1538,7 @@ export function SkillPanel({ sessionId, onNavigateToConfig, isActive = false }:event.stopPropagation();handleInstall(skill.name);}}- className="px-3 py-1 text-sm rounded-full border border-black bg-white text-black hover:bg-gray-100 transition-colors"- style={{ width: '76px', height: '28px' }}+ className="min-w-[76px] h-[28px] px-3 text-sm rounded-full border border-black bg-white text-black hover:bg-gray-100 transition-colors whitespace-nowrap"disabled={isInstalling}>{isInstalling ? t('skills.actions.installing') : t('skills.actions.install')}diff --git a/jiuwenswarm/channels/web/frontend/src/features/ClawHubSearchModal/index.tsx b/jiuwenswarm/channels/web/frontend/src/features/ClawHubSearchModal/index.tsxindex b40502c246..30b0b33183 100644--- a/jiuwenswarm/channels/web/frontend/src/features/ClawHubSearchModal/index.tsx+++ b/jiuwenswarm/channels/web/frontend/src/features/ClawHubSearchModal/index.tsx@@ -362,7 +362,7 @@ export function ClawHubSearchModal({type="button"onClick={() => void handleInstall(item)}disabled={isInstalling}- className={`w-[76px] h-[28px] rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${+ className={`min-w-[76px] h-[28px] px-3 rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${isInstalling? "text-text-muted cursor-not-allowed": "text-text"@@ -406,7 +406,7 @@ export function ClawHubSearchModal({type="button"onClick={() => void handleInstall(item)}disabled={isInstalling}- className={`w-[76px] h-[28px] rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${+ className={`min-w-[76px] h-[28px] px-3 rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${isInstalling? "text-text-muted cursor-not-allowed": "text-text"@@ -648,7 +648,7 @@ export function ClawHubSearchModal({type="button"onClick={() => void handleInstall(item)}disabled={isInstalling}- className={`w-[76px] h-[28px] rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${+ className={`min-w-[76px] h-[28px] px-3 rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${isInstalling? "text-text-muted cursor-not-allowed": "text-text"diff --git a/jiuwenswarm/channels/web/frontend/src/features/SkillNetSearchModal/index.tsx b/jiuwenswarm/channels/web/frontend/src/features/SkillNetSearchModal/index.tsxindex ef011bc422..d120453f87 100644--- a/jiuwenswarm/channels/web/frontend/src/features/SkillNetSearchModal/index.tsx+++ b/jiuwenswarm/channels/web/frontend/src/features/SkillNetSearchModal/index.tsx@@ -633,7 +633,7 @@ export function SkillNetSearchModal({? t("skills.skillNet.installingInProgress"): undefined}- className={`w-[76px] h-[28px] rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${+ className={`min-w-[76px] h-[28px] px-3 rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${isInstalling || installBlockedByLimit? "text-text-muted cursor-not-allowed": ""@@ -652,7 +652,7 @@ export function SkillNetSearchModal({void handleEvaluate(item);}}disabled={evalGloballyBusy}- className={`w-[76px] h-[28px] rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors ${+ className={`min-w-[76px] h-[28px] px-3 rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${evalGloballyBusy? "text-text-muted cursor-not-allowed": ""@@ -750,7 +750,7 @@ export function SkillNetSearchModal({void handleInstall(item);}}disabled={isInstalling || installBlockedByLimit}- className={`w-[76px] h-[28px] rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${+ className={`min-w-[76px] h-[28px] px-3 rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${isInstalling || installBlockedByLimit? "text-text-muted cursor-not-allowed": ""@@ -998,7 +998,7 @@ export function SkillNetSearchModal({? t("skills.skillNet.installingInProgress"): undefined}- className={`w-[76px] h-[28px] rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${+ className={`min-w-[76px] h-[28px] px-3 rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${isInstalling || installBlockedByLimit? "text-text-muted cursor-not-allowed": ""@@ -1017,7 +1017,7 @@ export function SkillNetSearchModal({void handleEvaluate(item);}}disabled={evalGloballyBusy}- className={`w-[76px] h-[28px] rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors ${+ className={`min-w-[76px] h-[28px] px-3 rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${evalGloballyBusy? "text-text-muted cursor-not-allowed": ""diff --git a/jiuwenswarm/channels/web/frontend/src/features/TeamSkillsHubModal/index.tsx b/jiuwenswarm/channels/web/frontend/src/features/TeamSkillsHubModal/index.tsxindex da23c878c2..3ccf2a65b9 100644--- a/jiuwenswarm/channels/web/frontend/src/features/TeamSkillsHubModal/index.tsx+++ b/jiuwenswarm/channels/web/frontend/src/features/TeamSkillsHubModal/index.tsx@@ -324,7 +324,7 @@ export function TeamSkillsHubModal({type="button"onClick={() => void handleInstall(item)}disabled={isInstalling}- className={`w-[76px] h-[28px] rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${+ className={`min-w-[76px] h-[28px] px-3 rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${isInstalling? "text-text-muted cursor-not-allowed": "text-text"@@ -370,7 +370,7 @@ export function TeamSkillsHubModal({type="button"onClick={() => void handleInstall(item)}disabled={isInstalling}- className={`w-[76px] h-[28px] rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${+ className={`min-w-[76px] h-[28px] px-3 rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${isInstalling? "text-text-muted cursor-not-allowed": "text-text"@@ -517,7 +517,7 @@ export function TeamSkillsHubModal({type="button"onClick={() => void handleInstall(item)}disabled={isInstalling}- className={`w-[76px] h-[28px] rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${+ className={`min-w-[76px] h-[28px] px-3 rounded-[24px] text-sm text-[#191919] border border-[#191919] hover:bg-secondary/50 transition-colors whitespace-nowrap ${isInstalling? "text-text-muted cursor-not-allowed": "text-text"diff --git a/jiuwenswarm/channels/web/frontend/src/index.css b/jiuwenswarm/channels/web/frontend/src/index.cssindex 6bafbbb2cf..5e3f43acea 100644--- a/jiuwenswarm/channels/web/frontend/src/index.css+++ b/jiuwenswarm/channels/web/frontend/src/index.css@@ -1613,8 +1613,9 @@ select {/* Skill action button - white/black in light mode, gray/white in dark mode */.skill-action-btn {- width: 76px;+ min-width: 76px;height: 28px;+ padding: 0 12px;border-radius: 24px;font-size: var(--font-size-sm);border: 1px solid #000000;