Enhance AppLauncherOverlay and navigation logic for improved user experience

- Added functionality to close the overlay and return focus to the launcher when the Escape key is pressed inside an iframe.
- Implemented message handling to close the app launcher from the parent window.
- Updated navigation logic in useControllerNav to improve focus management when navigating between sidebar and main content.
- Enhanced Dashboard and Settings views with data attributes for better controller navigation support.
This commit is contained in:
Dorian
2026-02-18 11:29:05 +00:00
parent 473c58894c
commit d0312c6721
5 changed files with 51 additions and 7 deletions

View File

@@ -130,8 +130,8 @@
class="flex-1 overflow-hidden relative pb-20 md:pb-0 glass-piece z-10"
:class="{ 'glass-throw-main': showZoomIn }"
>
<!-- App Switcher - top right, compact -->
<div class="absolute top-4 right-4 md:top-6 md:right-8 z-20">
<!-- App Switcher - top right, compact (Right arrow from sidebar goes here first) -->
<div data-controller-main-entry class="absolute top-4 right-4 md:top-6 md:right-8 z-20">
<AppSwitcher />
</div>

View File

@@ -91,7 +91,7 @@
</div>
<!-- Change Password -->
<div class="mb-6">
<div data-controller-container tabindex="0" class="mb-6">
<button
@click="showChangePasswordModal = true"
class="w-full flex items-center justify-center gap-2 mb-4 px-4 py-2 rounded-lg border border-orange-500/50 text-orange-400 font-medium hover:bg-orange-500/10 transition-colors"