From 085ced77513c5c2ded03b35c70c793942e1f6638 Mon Sep 17 00:00:00 2001
From: "LAPTOP-O016UC3M\\Qi Chen" <16399091+binaricat@users.noreply.github.com>
Date: Thu, 11 Dec 2025 10:51:04 +0800
Subject: [PATCH] Replaces popover components with dropdowns for menus
Switches UI menu interactions from popover to dropdown for improved stacking and positioning reliability.
Updates z-index and disables problematic animations to prevent display issues, especially on first open.
Enhances consistency and visual layering of menu components across the application.
---
components/KeychainManager.tsx | 50 ++++----
components/ui/dropdown.tsx | 225 +++++++++++++++++++++++++++++++++
components/ui/popover.tsx | 9 +-
components/ui/select.tsx | 3 +-
4 files changed, 259 insertions(+), 28 deletions(-)
create mode 100644 components/ui/dropdown.tsx
diff --git a/components/KeychainManager.tsx b/components/KeychainManager.tsx
index 474d535b9..b9c339008 100644
--- a/components/KeychainManager.tsx
+++ b/components/KeychainManager.tsx
@@ -32,7 +32,7 @@ import { Label } from './ui/label';
import { Textarea } from './ui/textarea';
import { ScrollArea } from './ui/scroll-area';
import { cn } from '../lib/utils';
-import { Popover, PopoverContent, PopoverTrigger } from './ui/popover';
+import { Dropdown, DropdownTrigger, DropdownContent } from './ui/dropdown';
import {
ContextMenu,
ContextMenuContent,
@@ -828,8 +828,8 @@ echo $3 >> "$FILE"`);
KEY
-
-
+
+
-
-
+
+
)}
-
-
+
+
{/* CERTIFICATE button with split interaction */}
@@ -891,8 +891,8 @@ echo $3 >> "$FILE"`);
{keys.filter(k => k.certificate).length}
-
-
+
+
-
-
+
+
-
-
+
+