jedmund-svelte/src/lib/components/SingleColumnPhotoGrid.svelte
Justin Edmund 1c38dc87e3 fix: drag handle actions now affect the correct block
- Added menuNode state to capture the node position when menu opens
- Updated all action functions to use menuNode instead of currentNode
- This ensures drag handle actions (Turn into, Delete, etc.) always affect the block where the handle was clicked, not where the mouse currently hovers
- Also formatted code with prettier

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-26 10:33:27 -04:00

12 lines
270 B
Svelte

<script lang="ts">
import PhotoGrid from './PhotoGrid.svelte'
import type { Photo } from '$lib/types/photos'
interface Props {
photos: Photo[]
}
let { photos = [] }: Props = $props()
</script>
<PhotoGrid {photos} columns={1} gap="large" showCaptions={true} />