Update favicon and enhance UI components for improved user experience

- Replaced PNG favicon with SVG for better scalability and visual quality across devices.
- Updated Vite configuration to include the new SVG favicon and adjusted asset paths.
- Enhanced various UI components with improved focus management and accessibility features.
- Introduced new styles to hide scrollbars while maintaining scroll functionality for a cleaner interface.
This commit is contained in:
Dorian
2026-02-17 22:10:38 +00:00
parent 8a32e36d85
commit b63612c5ae
21 changed files with 486 additions and 107 deletions
+4
View File
@@ -70,8 +70,10 @@ export const useSpotlightStore = defineStore('spotlight', () => {
content: '',
relatedPath: undefined as string | undefined,
})
const helpModalRestoreFocusRef = ref<HTMLElement | null>(null)
function showHelpModal(payload: { title: string; content: string; relatedPath?: string }) {
helpModalRestoreFocusRef.value = document.activeElement as HTMLElement | null
helpModal.show = true
helpModal.title = payload.title
helpModal.content = payload.content
@@ -79,6 +81,8 @@ export const useSpotlightStore = defineStore('spotlight', () => {
}
function closeHelpModal() {
helpModalRestoreFocusRef.value?.focus?.()
helpModalRestoreFocusRef.value = null
helpModal.show = false
}