From 984e5b8df7f3b264fe61a3b83692fadfffb3237f Mon Sep 17 00:00:00 2001 From: Best Codes <106822363+The-Best-Codes@users.noreply.github.com> Date: Mon, 12 May 2025 15:55:22 -0500 Subject: [PATCH] UI Tweaks including border and padding fixes, contrast improvements, and more (#2489) --- ui/desktop/src/components/ChatInput.tsx | 6 ++--- .../components/more_menu/MoreMenuLayout.tsx | 10 +++++-- .../permission/PermissionSetting.tsx | 27 +++++++++++-------- 3 files changed, 27 insertions(+), 16 deletions(-) diff --git a/ui/desktop/src/components/ChatInput.tsx b/ui/desktop/src/components/ChatInput.tsx index c5569d7d..51d28a69 100644 --- a/ui/desktop/src/components/ChatInput.tsx +++ b/ui/desktop/src/components/ChatInput.tsx @@ -287,7 +287,7 @@ export default function ChatInput({ maxHeight: `${maxHeight}px`, overflowY: 'auto', }} - className="w-full pl-4 pr-[68px] outline-none border-none focus:ring-0 bg-transparent pt-3 pb-1.5 text-sm resize-none text-textStandard placeholder:text-textPlaceholder placeholder:opacity-50" + className="w-full pl-4 pr-[68px] outline-none border-none focus:ring-0 bg-transparent pt-3 pb-1.5 text-sm resize-none text-textStandard placeholder:text-textPlaceholder" /> {isLoading ? ( @@ -310,10 +310,10 @@ export default function ChatInput({ size="icon" variant="ghost" disabled={!displayValue.trim()} - className={`absolute right-3 top-2 transition-colors rounded-full hover:cursor w-7 h-7 [&_svg]:size-4 ${ + className={`absolute right-3 top-2 transition-colors rounded-full w-7 h-7 [&_svg]:size-4 ${ !displayValue.trim() ? 'text-textSubtle cursor-not-allowed' - : 'bg-bgAppInverse text-white' + : 'bg-bgAppInverse text-textProminentInverse hover:cursor-pointer' }`} > diff --git a/ui/desktop/src/components/more_menu/MoreMenuLayout.tsx b/ui/desktop/src/components/more_menu/MoreMenuLayout.tsx index e86148fb..b030d65f 100644 --- a/ui/desktop/src/components/more_menu/MoreMenuLayout.tsx +++ b/ui/desktop/src/components/more_menu/MoreMenuLayout.tsx @@ -16,18 +16,24 @@ export default function MoreMenuLayout({ setIsGoosehintsModalOpen?: (isOpen: boolean) => void; }) { const [isTooltipOpen, setIsTooltipOpen] = useState(false); + + // Assume macOS if not explicitly set + const safeIsMacOS = (window?.electron?.platform || 'darwin') === 'darwin'; + return (
{showMenu && ( -
+