- 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>
12 lines
270 B
Svelte
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} />
|