@shival99/z-ui-svelte 0.1.22 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -123,19 +123,20 @@
123
123
  {/snippet}
124
124
 
125
125
  {#if category === 'image'}
126
+ <!-- The box is larger than the picture: its empty area passes clicks through to the stage and dismisses it, like the video frame. -->
126
127
  <div
127
- class="relative flex h-[min(60vh,calc(100dvh-9.5rem))] w-[70vw] max-w-[94vw] items-center justify-center rounded-lg"
128
+ class="pointer-events-none relative flex h-[min(60vh,calc(100dvh-9.5rem))] w-[70vw] max-w-[94vw] items-center justify-center rounded-lg"
128
129
  >
129
130
  {#if loading && !failed}
130
131
  {@render loadingState()}
131
132
  {/if}
132
133
  {#if failed}
133
- {@render errorState(zTranslate('i18n_z_ui_gallery_preview_load_error'))}
134
+ <div class="pointer-events-auto">{@render errorState(zTranslate('i18n_z_ui_gallery_preview_load_error'))}</div>
134
135
  {:else}
135
136
  <button
136
137
  type="button"
137
138
  class={[
138
- 'flex max-h-full max-w-full items-center justify-center rounded-lg outline-none',
139
+ 'pointer-events-auto flex max-h-full max-w-full items-center justify-center rounded-lg outline-none',
139
140
  zoomed ? 'cursor-zoom-out' : 'cursor-zoom-in',
140
141
  ]}
141
142
  aria-label={file.name}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shival99/z-ui-svelte",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "Z-UI component library for Svelte 5 (runes, no CDK).",
5
5
  "license": "MIT",
6
6
  "type": "module",