@x33025/sveltely 0.0.54 → 0.0.56

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.
@@ -159,11 +159,12 @@
159
159
  sourceRect.height / 2,
160
160
  sourceRect.width / 2
161
161
  );
162
- const panelStyle = getComputedStyle(panelEl);
163
- const panelPadding = Math.min(parsePx(panelStyle.paddingTop), parsePx(panelStyle.paddingLeft));
164
162
  const panelRect = panelEl.getBoundingClientRect();
163
+ const insetTop = Math.max(0, sourceRect.top - panelRect.top);
164
+ const insetLeft = Math.max(0, sourceRect.left - panelRect.left);
165
+ const sourceInset = Math.min(insetTop, insetLeft);
165
166
  const panelRadius = Math.min(
166
- Math.max(0, effectiveSourceRadius + panelPadding),
167
+ Math.max(0, effectiveSourceRadius + sourceInset),
167
168
  panelRect.height / 2,
168
169
  panelRect.width / 2
169
170
  );
@@ -253,6 +253,7 @@
253
253
  }
254
254
 
255
255
  .overflow-auto > .vstack,
256
- .overflow-auto > .hstack {
256
+ .overflow-auto > .hstack,
257
+ .overflow-auto > .grid {
257
258
  flex-shrink: 0;
258
259
  }
package/dist/style.css CHANGED
@@ -872,7 +872,7 @@
872
872
  height: 1px;
873
873
  width: 100%;
874
874
  }
875
- .overflow-auto > .vstack, .overflow-auto > .hstack {
875
+ .overflow-auto > .vstack, .overflow-auto > .hstack, .overflow-auto > .grid {
876
876
  flex-shrink: 0;
877
877
  }
878
878
  @property --tw-translate-x {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x33025/sveltely",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",