jedmund-svelte/src/lib/components/MasonryPhotoGrid.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

13 lines
313 B
Svelte

<script lang="ts">
import PhotoGrid from './PhotoGrid.svelte'
import type { Photo } from '$lib/types/photos'
interface Props {
photos: Photo[]
columns?: 1 | 2 | 3 | 'auto'
}
let { photos = [], columns = 'auto' }: Props = $props()
</script>
<PhotoGrid {photos} {columns} masonry={true} gap="medium" />