From 5175c20d82da6dfa9211f845a218e8ef0331058d Mon Sep 17 00:00:00 2001 From: padreug Date: Mon, 7 Jul 2025 01:09:03 +0200 Subject: [PATCH] feat: Enhance Navbar and IdentityDialog components with improved functionality and logging - Update Navbar to close the mobile menu when opening the identity dialog. - Add debug logging to IdentityDialog to track changes in the dialog's open state. - Adjust styling for mobile menu and dialog content for better responsiveness. --- src/components/layout/Navbar.vue | 8 +++++--- src/components/nostr/IdentityDialog.vue | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/layout/Navbar.vue b/src/components/layout/Navbar.vue index 83af830..5855e77 100644 --- a/src/components/layout/Navbar.vue +++ b/src/components/layout/Navbar.vue @@ -36,6 +36,8 @@ const toggleTheme = () => { const openIdentityDialog = () => { showIdentityDialog.value = true + // Close mobile menu when opening dialog + isOpen.value = false } @@ -119,11 +121,11 @@ const openIdentityDialog = () => {
+ class="absolute left-0 right-0 top-14 z-40 border-b bg-background/95 backdrop-blur-sm md:hidden">
- @@ -134,7 +136,7 @@ const openIdentityDialog = () => { Connected
- diff --git a/src/components/nostr/IdentityDialog.vue b/src/components/nostr/IdentityDialog.vue index ad6b7eb..8fe7147 100644 --- a/src/components/nostr/IdentityDialog.vue +++ b/src/components/nostr/IdentityDialog.vue @@ -23,6 +23,7 @@ interface Emits { const props = defineProps() const emit = defineEmits() + // Form states const importKey = ref('') const usePassword = ref(false) @@ -145,7 +146,7 @@ function initializeProfileForm() {