From 1ed4d00a16ab03932438a1986330c2a299fe3c5a Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Wed, 17 Dec 2025 05:25:33 -0800 Subject: [PATCH] fix(ui): improve WhatsNew modal design and responsiveness (#8155) - Add side spacing for small viewports (calc(100%-2rem) instead of w-full) - Apply rounded corners at all viewport sizes (not just sm:) - Remove redundant "NEW" badge (title already says "New in v...") - Remove redundant "Dismiss" button (X close button is sufficient) - Reduce excess bottom padding for tighter layout - Add cursor-pointer to dialog close button for better UX - Clean up unused imports (PLATFORM_CONFIG, PlatformType, isVscode) --- .../src/components/common/WhatsNewModal.tsx | 38 +++++-------------- webview-ui/src/components/ui/dialog.tsx | 4 +- 2 files changed, 11 insertions(+), 31 deletions(-) diff --git a/webview-ui/src/components/common/WhatsNewModal.tsx b/webview-ui/src/components/common/WhatsNewModal.tsx index b6aef758..f008763a 100644 --- a/webview-ui/src/components/common/WhatsNewModal.tsx +++ b/webview-ui/src/components/common/WhatsNewModal.tsx @@ -3,7 +3,6 @@ import { EmptyRequest } from "@shared/proto/cline/common" import React, { useCallback, useRef } from "react" import { useMount } from "react-use" import { Dialog, DialogContent } from "@/components/ui/dialog" -import { PLATFORM_CONFIG, PlatformType } from "@/config/platform.config" import { useClineAuth } from "@/context/ClineAuthContext" import { useExtensionState } from "@/context/ExtensionStateContext" import { AccountServiceClient } from "@/services/grpc-client" @@ -16,7 +15,6 @@ interface WhatsNewModalProps { } export const WhatsNewModal: React.FC = ({ open, onClose, version }) => { - const isVscode = PLATFORM_CONFIG.type === PlatformType.VSCODE const { clineUser } = useClineAuth() const { openRouterModels, setShowChatModelSelector, refreshOpenRouterModels } = useExtensionState() const { handleFieldsChange } = useApiConfigurationHandlers() @@ -65,7 +63,7 @@ export const WhatsNewModal: React.FC = ({ open, onClose, ver const AuthButton: React.FC<{ children: React.ReactNode }> = ({ children }) => clineUser ? ( -
{children}
+
{children}
) : ( - diff --git a/webview-ui/src/components/ui/dialog.tsx b/webview-ui/src/components/ui/dialog.tsx index af8c2e63..a3d37d7a 100644 --- a/webview-ui/src/components/ui/dialog.tsx +++ b/webview-ui/src/components/ui/dialog.tsx @@ -37,14 +37,14 @@ const DialogContent = React.forwardRef {children} {!hideClose && ( - + Close