fix: shadow overlay

This commit is contained in:
Julien Calixte
2026-01-09 23:43:19 +01:00
parent 8394c8f33f
commit b6554282f7
2 changed files with 3 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ import { useOverlay } from "@/hooks/useOverlay.hook"
import { useRouteQueryStackedNotes } from "@/hooks/useRouteQueryStackedNotes.hook"
const BOOKMARK_WIDTH = 2
const OFFSET = 24 // stacked-note padding
const OFFSET = 32 // stacked-note padding
export const useNoteOverlay = (
className: string,

View File

@@ -49,9 +49,11 @@ export const useNoteView = (containerClass: string) => {
const container = document.querySelector(
`.${containerClass}`,
) as HTMLElement | null
if (!container) {
return
}
if (isMobile.value) {
container.style.height = `${(stackedNotes.value.length + 1) * 100}vh`
} else {