fix: standardize MCP panel button font sizes to match app-wide consistency
Remove size="sm" from MCP panel buttons to use default text-sm instead of text-xs, ensuring visual consistency with buttons throughout the application.
This commit is contained in:
@@ -654,12 +654,11 @@ const McpFormModal: React.FC<McpFormModalProps> = ({
|
|||||||
|
|
||||||
{/* 操作按钮 */}
|
{/* 操作按钮 */}
|
||||||
<div className="flex items-center gap-3">
|
<div className="flex items-center gap-3">
|
||||||
<Button type="button" variant="ghost" size="sm" onClick={onClose}>
|
<Button type="button" variant="ghost" onClick={onClose}>
|
||||||
{t("common.cancel")}
|
{t("common.cancel")}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
size="sm"
|
|
||||||
onClick={handleSubmit}
|
onClick={handleSubmit}
|
||||||
disabled={saving || (!isEditing && !!idError)}
|
disabled={saving || (!isEditing && !!idError)}
|
||||||
variant="mcp"
|
variant="mcp"
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ const McpPanel: React.FC<McpPanelProps> = ({ open, onOpenChange, appType }) => {
|
|||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<div className="flex items-center justify-between pr-8">
|
<div className="flex items-center justify-between pr-8">
|
||||||
<DialogTitle>{panelTitle}</DialogTitle>
|
<DialogTitle>{panelTitle}</DialogTitle>
|
||||||
<Button type="button" variant="mcp" size="sm" onClick={handleAdd}>
|
<Button type="button" variant="mcp" onClick={handleAdd}>
|
||||||
<Plus size={16} />
|
<Plus size={16} />
|
||||||
{t("mcp.add")}
|
{t("mcp.add")}
|
||||||
</Button>
|
</Button>
|
||||||
@@ -191,7 +191,6 @@ const McpPanel: React.FC<McpPanelProps> = ({ open, onOpenChange, appType }) => {
|
|||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
variant="mcp"
|
variant="mcp"
|
||||||
size="sm"
|
|
||||||
onClick={() => onOpenChange(false)}
|
onClick={() => onOpenChange(false)}
|
||||||
>
|
>
|
||||||
<Check size={16} />
|
<Check size={16} />
|
||||||
|
|||||||
Reference in New Issue
Block a user