From 8528644eaa67e199c0631b510fac8ff719a31cf5 Mon Sep 17 00:00:00 2001 From: ayangweb <75017711+ayangweb@users.noreply.github.com> Date: Fri, 7 Mar 2025 14:55:05 +0800 Subject: [PATCH] refactor: right-click again to close the context menu (#262) --- package.json | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src/components/Search/ContextMenu.tsx | 11 ++++++++++- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 3d87591c..06082249 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "coco", "private": true, - "version": "0.2.0", + "version": "0.1.0", "type": "module", "scripts": { "dev": "vite", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 0f07b66b..1ea9bc0a 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -733,7 +733,7 @@ dependencies = [ [[package]] name = "coco" -version = "0.2.0" +version = "0.1.0" dependencies = [ "applications", "async-trait", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 18e92673..dd177cee 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "coco" -version = "0.2.0" +version = "0.1.0" description = "Search, connect, collaborate – all in one place." authors = ["INFINI Labs"] edition = "2021" diff --git a/src/components/Search/ContextMenu.tsx b/src/components/Search/ContextMenu.tsx index f30ed80b..6360bfc7 100644 --- a/src/components/Search/ContextMenu.tsx +++ b/src/components/Search/ContextMenu.tsx @@ -128,7 +128,16 @@ const ContextMenu = () => { return ( <> - {visibleContextMenu &&
} + {visibleContextMenu && ( +