mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-04 11:43:57 +08:00
fix(prompts): unify add button style with other panels
Replace circular orange icon button with ghost text button to match Skills and MCP panel styling.
This commit is contained in:
+5
-4
@@ -631,12 +631,13 @@ function App() {
|
|||||||
>
|
>
|
||||||
{currentView === "prompts" && (
|
{currentView === "prompts" && (
|
||||||
<Button
|
<Button
|
||||||
size="icon"
|
variant="ghost"
|
||||||
|
size="sm"
|
||||||
onClick={() => promptPanelRef.current?.openAdd()}
|
onClick={() => promptPanelRef.current?.openAdd()}
|
||||||
className={`ml-auto ${addActionButtonClass}`}
|
className="hover:bg-black/5 dark:hover:bg-white/5"
|
||||||
title={t("prompts.add")}
|
|
||||||
>
|
>
|
||||||
<Plus className="w-5 h-5" />
|
<Plus className="w-4 h-4 mr-2" />
|
||||||
|
{t("prompts.add")}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
{currentView === "mcp" && (
|
{currentView === "mcp" && (
|
||||||
|
|||||||
Reference in New Issue
Block a user