recourse 4.6.0 → 4.6.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: 314d13d5c8a4e44ae907b432a9f8c37d3c4f3401cb12856127681077171c969f
4
- data.tar.gz: c389ca81f7dbad23c1f185b4f50ec479f901c7dace6d57d94020be9b811f8c80
3
+ metadata.gz: 1d83325d1f6bbb46bb066cc8e722d198bfaf8e4905c3daffb358dd09fe72a788
4
+ data.tar.gz: 15fd82184d00e9519c6ddbe05979e253363d1395a35fff2e0c86251591df90f5
5
5
  SHA512:
6
- metadata.gz: 1b1492f1befaab5648685a8894d255a70a376c3dbd076218ebe68d0cc5c88345e6f1debcc7598745fd0ec8b68151967bd896730b0dc50b9c8fa282bcb5dfcdf0
7
- data.tar.gz: 213e0a0eefc0137b315ac8bfb35861286b72958edd686798a820a5a8388b627bd0f5905be5aa682027f4333eccb50291a42361788781a66d9b226a8ff9f19f12
6
+ metadata.gz: b529387c7741eed20196cfcacce3d3db084c9e6ccbda86ee43db441827065f6bcd65217fb2505e631aa36cbb3f3d4d8b88d9455663bfd8efbc501e620713d845
7
+ data.tar.gz: 558e8661d49c9c9be096f79a1674c0771f77706b503ebd525993cfd2c6079bfc0b0dafca56c321bdbf74b494eff0d7bff0daf9c9314c89ad97a4db67e562a6eb
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
5
5
  For more information about changelogs, check [Keep a Changelog](http://keepachangelog.com) and
6
6
  [Vandamme](http://tech-angels.github.io/vandamme).
7
7
 
8
+ ## 4.6.1 - 2026-09-08
9
+
10
+ * [Fix] On a phone the arrows that put the words back ask for the page again rather than reshaping it in place, which in Safari left the sidebar's entries drawn one over the next until a reload
11
+
8
12
  ## 4.6.0 - 2026-09-08
9
13
 
10
14
  * [Fix] On a phone the `Displaying items` sentence is centered over the pagination links, which already were
@@ -3,15 +3,17 @@ import { Controller } from '/recourse/stimulus.js'
3
3
  // The arrows at the foot of the sidebar, drawn on a phone alone: a tap puts the words
4
4
  // back beside every icon the chrome shows — the sidebar's entries, the crumbs, the tabs,
5
5
  // the foot's own controls — and the next tap takes them away again. The choice goes to
6
- // the server in a cookie, the way the zone does, so the next page is drawn with the
7
- // words in rather than drawn without them and widened once a script runs.
6
+ // the server in a cookie, the way the zone does, and the page is asked for again rather
7
+ // than reshaped in place: Safari left the row of entries where it was when the words
8
+ // came out of hiding, one link over the next, until a reload laid it out afresh.
8
9
  export default class extends Controller {
9
10
  static values = { storage: String }
10
11
 
11
12
  toggle() {
12
- const expanded = document.body.classList.toggle('recourse-expanded')
13
- const density = expanded ? 'expanded' : 'compact'
13
+ const expanded = document.body.classList.contains('recourse-expanded')
14
+ const density = expanded ? 'compact' : 'expanded'
14
15
 
15
16
  document.cookie = `${this.storageValue}=${density}; path=/; max-age=31536000; samesite=lax`
17
+ window.Turbo.visit(window.location.href, { action: 'replace' })
16
18
  }
17
19
  }
@@ -1,4 +1,4 @@
1
1
  module Recourse
2
2
  # Version of the gem, read by the gemspec and by hosts checking compatibility.
3
- VERSION = '4.6.0'
3
+ VERSION = '4.6.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recourse
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.0
4
+ version: 4.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob