@reuse-sh/lightbox 0.3.0 → 0.4.0

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.
@@ -99,11 +99,12 @@
99
99
  }
100
100
  .re-lightbox-frame {
101
101
  position: relative;
102
+ box-sizing: border-box;
102
103
  flex: none;
103
104
  transform-origin: center;
104
105
  }
105
106
  .re-lightbox-frame[data-transparent]:not([data-loading], [data-error]) {
106
- background: var(--re-lightbox-media-background);
107
+ background: var(--re-lightbox-media-background) content-box;
107
108
  }
108
109
  .re-lightbox[data-zoom="in"]:where([data-zoomable="true"]) .re-lightbox-frame {
109
110
  cursor: zoom-in;
@@ -172,7 +172,11 @@
172
172
  .re-lightbox-prev,
173
173
  .re-lightbox-next {
174
174
  top: calc(
175
- (100% - var(--re-lightbox-bottom-room)) /
175
+ (
176
+ 100% -
177
+ var(--re-lightbox-bottom-room) -
178
+ var(--re-lightbox-footer-room, 0px)
179
+ ) /
176
180
  2 -
177
181
  var(--re-lightbox-button-size) /
178
182
  2
@@ -277,7 +281,7 @@
277
281
  box-shadow: inset 0 0 0 1px var(--re-lightbox-media-ring);
278
282
  }
279
283
  .re-lightbox-frame:is([data-loading], [data-error]) {
280
- background: var(--re-lightbox-placeholder);
284
+ background: var(--re-lightbox-placeholder) content-box;
281
285
  }
282
286
  .re-lightbox-error {
283
287
  padding: var(--re-lightbox-error-padding);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reuse-sh/lightbox",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "An image lightbox on native scrolling, with thumbnail transitions, zoom, pan, and pinch.",
5
5
  "keywords": [
6
6
  "reuse",
@@ -80,8 +80,8 @@
80
80
  "@types/react": "19.3.0"
81
81
  },
82
82
  "dependencies": {
83
- "@reuse-sh/carousel": "0.2.2",
84
- "@reuse-sh/loaders": "0.0.4"
83
+ "@reuse-sh/carousel": "0.2.3",
84
+ "@reuse-sh/loaders": "0.0.5"
85
85
  },
86
86
  "publishConfig": {
87
87
  "access": "public"