From 267b60c09e55e2c4c84572f4fb63adc081ecd80d Mon Sep 17 00:00:00 2001 From: pashpashpash Date: Fri, 14 Feb 2025 13:48:26 -0800 Subject: [PATCH] ui polish --- webview-ui/src/components/mcp/McpView.tsx | 8 ++- .../mcp/marketplace/McpMarketplaceView.tsx | 69 +++++++++++++------ 2 files changed, 52 insertions(+), 25 deletions(-) diff --git a/webview-ui/src/components/mcp/McpView.tsx b/webview-ui/src/components/mcp/McpView.tsx index c2e64d24b7..9450140f2f 100644 --- a/webview-ui/src/components/mcp/McpView.tsx +++ b/webview-ui/src/components/mcp/McpView.tsx @@ -105,7 +105,7 @@ const McpView = ({ onDone }: McpViewProps) => { Done -
+
setActiveTab(e.target.activeid)}> Installed Marketplace @@ -168,11 +168,13 @@ const McpView = ({ onDone }: McpViewProps) => { - +
+ +
-
+
{/* Server Configuration Button */}
{ const { mcpServers } = useExtensionState() @@ -142,16 +154,19 @@ const McpMarketplaceView = () => { } return ( -
+
-
+
+ {" "} + {/* Added minWidth: 0 to prevent flex item from overflowing */}
{ className="codicon codicon-search" style={{ position: "absolute", - left: "8px", + left: "10px", top: "50%", transform: "translateY(-50%)", color: "var(--vscode-input-placeholderForeground)", + pointerEvents: "none", + fontSize: "14px", // Match input text size + lineHeight: 1, // Ensure icon is centered properly }} />
@@ -194,26 +212,33 @@ const McpMarketplaceView = () => {
- fetchMarketplace(true)} disabled={isRefreshing}> + fetchMarketplace(true)} + disabled={isRefreshing} + style={refreshStyles}> Refresh
{filteredItems.length === 0 ? (