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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c7fa09422f0fbfb2b1e2caa70338f1c842d12d900097efe8d9577c610041e46
4
- data.tar.gz: 1b366575265b9d3662710ec2131fe7bfe64e7b2afcce0662d222189643aa1fbd
3
+ metadata.gz: 3f8077289d2f42d36c5ff8177f81097b42baafd100b6aa8adbb6e1123c5a5058
4
+ data.tar.gz: 50de90e3b76b95d9875693b941003ae8918f84a97ad97c696a67ae61d3e85a31
5
5
  SHA512:
6
- metadata.gz: 27d701fa2951f3a60871a013ef2618a6dfb09ee9f932bf93b91b3aaae85371c349345e10fbfdfb92c6645e3b24769b2d8c4c55dd144389a05ee4a7cf41f69116
7
- data.tar.gz: a1ca746f2c919e114d2a0dbf5995704cacc6389eec9b545c9b26bf3055dd1b8803d03a8adb689dda3463dac5cea925aa81934f61e441d24ff943366167100490
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.0"
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() {
@@ -1,5 +1,5 @@
1
1
  module Lostcoords
2
2
  module Ui
3
- VERSION = "0.9.0"
3
+ VERSION = "0.9.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lostcoords-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lost Coordinates