lostcoords-ui 0.9.0 → 0.9.1
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.
- checksums.yaml +4 -4
- data/README.md +8 -1
- data/app/javascript/lostcoords/ui/helpers/dismiss_stack.js +1 -1
- data/lib/lostcoords/ui/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3f8077289d2f42d36c5ff8177f81097b42baafd100b6aa8adbb6e1123c5a5058
|
|
4
|
+
data.tar.gz: 50de90e3b76b95d9875693b941003ae8918f84a97ad97c696a67ae61d3e85a31
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e8ac1886d108885b94b1f5a58b1ce75cc80a0331523aa2cfd50a716fd92fa530c14eba5d1c5715f8bd9e479e37a39bc4d161476f99a076dbe75226b069054617
|
|
7
|
+
data.tar.gz: 0c248a33c017307f9c9620d7265b11a1c4f974657860cc150c3ceab6b2fc87b124f03184de7b16663cd01a772977acf85958908fada977dadc7fa731f7e5a06d
|
data/README.md
CHANGED
|
@@ -21,7 +21,7 @@ lockfile pins its gem version, so publishing a library update does not upgrade c
|
|
|
21
21
|
## Install
|
|
22
22
|
|
|
23
23
|
```ruby
|
|
24
|
-
gem "lostcoords-ui", "~> 0.9.
|
|
24
|
+
gem "lostcoords-ui", "~> 0.9.1"
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
The engine adds its rendering helpers to host views, its views and translations to the host's lookup
|
|
@@ -170,6 +170,13 @@ Omit `only` to register every library controller. Unknown identifiers raise befo
|
|
|
170
170
|
registered, and repeated calls on the same application keep later overrides, so register defaults
|
|
171
171
|
before application overrides.
|
|
172
172
|
|
|
173
|
+
## Changes in 0.9.1
|
|
174
|
+
|
|
175
|
+
Nothing needs an edit:
|
|
176
|
+
|
|
177
|
+
- **Opening a dialog, sheet or menu no longer shifts the page.** The scroll lock pins the body at the width
|
|
178
|
+
it had before locking, so the page keeps its width when the scrollbar disappears.
|
|
179
|
+
|
|
173
180
|
## Changes in 0.9.0
|
|
174
181
|
|
|
175
182
|
The gem is Rails-only. It loads through its Rails engine, and the standalone ActionView mode is gone:
|
|
@@ -153,6 +153,7 @@ function lockDocumentScroll() {
|
|
|
153
153
|
if (!body || body.dataset.modalScrollLock === "true") return
|
|
154
154
|
|
|
155
155
|
lockedScrollY = window.scrollY
|
|
156
|
+
body.style.inlineSize = getComputedStyle(body).inlineSize
|
|
156
157
|
body.dataset.modalScrollLock = "true"
|
|
157
158
|
body.style.position = "fixed"
|
|
158
159
|
body.style.inset = "0"
|
|
@@ -160,7 +161,6 @@ function lockDocumentScroll() {
|
|
|
160
161
|
// Pinning the body drags the sticky nav off with the scrolled-away page;
|
|
161
162
|
// the nav offsets itself by this to stay where it was.
|
|
162
163
|
body.style.setProperty("--lc-scroll-lock-y", `${lockedScrollY}px`)
|
|
163
|
-
body.style.inlineSize = "100%"
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
function unlockDocumentScroll() {
|