diff --git a/package.json b/package.json index 465493a..86892ce 100644 --- a/package.json +++ b/package.json @@ -78,6 +78,7 @@ "sharp-ico": "0.1.5" }, "dependencies": { + "@neodrag/svelte": "^2.2.0", "@svelte-put/shortcut": "^4.0.0", "@tauri-apps/api": "^2.1.1", "@tauri-apps/plugin-dialog": "^2.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2c803a2..aec3137 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,9 @@ importers: .: dependencies: + '@neodrag/svelte': + specifier: ^2.2.0 + version: 2.2.0 '@svelte-put/shortcut': specifier: ^4.0.0 version: 4.0.0(svelte@5.3.0) @@ -938,6 +941,9 @@ packages: '@jridgewell/trace-mapping@0.3.25': resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} + '@neodrag/svelte@2.2.0': + resolution: {integrity: sha512-ZUgf9hFMJPN2fG9jFeECv6XebVYjGQ845vORSWwSmpkhmFM9tslWNZ/DfsSXcybBxhulkN9GC0A+bgXRQsDhdA==} + '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -5052,6 +5058,8 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 + '@neodrag/svelte@2.2.0': {} + '@nodelib/fs.scandir@2.1.5': dependencies: '@nodelib/fs.stat': 2.0.5 diff --git a/src/lib/components/ui/dialog/dialog-content.svelte b/src/lib/components/ui/dialog/dialog-content.svelte index 2b22626..4d80a69 100644 --- a/src/lib/components/ui/dialog/dialog-content.svelte +++ b/src/lib/components/ui/dialog/dialog-content.svelte @@ -1,9 +1,10 @@ @@ -27,6 +38,8 @@ )} {...restProps} > +
+ {@render children?.()}