studio-engine 0.12.0 → 0.12.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/CHANGELOG.md +12 -1
- data/app/assets/javascripts/studio/sticky_table_header.js +5 -0
- data/lib/studio/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9febc9d4cd408725e94cd7cbd481b698f8653ec08f79f94dd3b77e7a79140a1b
|
|
4
|
+
data.tar.gz: 39512b32582a5ca68c10271a320aad6e27f67a084ce39a0cf0405b2afd9a7839
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0a4cee970e8b66de10c44d6f953419d186b69406fcab64d9ed1a418a2038482223aa75cb72e356c528aabf269368b49f1f24ec7bad7d0b0f33a108982b7b02db
|
|
7
|
+
data.tar.gz: 755b20e0bdd55e28163bfb53bd5029ac150efec66796c91633336a5e3c0187a8a9aefc5dd33b1f8dab89a8edb8d502b734ed3999caf4b4197562eb77e8fe614e
|
data/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
The format is [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). This project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html) — `MAJOR.MINOR.PATCH`. Consumer Rails apps install the released RubyGems package with `gem "studio-engine", "~> 0.6"`; bumping the gem version and updating consumer lockfiles is a release.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 0.12.1 — 2026-07-11
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- **Sticky table headers: skip self-pinning tables** — `shouldEnhanceTable`
|
|
9
|
+
now declines tables whose header cells are already `position: sticky`
|
|
10
|
+
(they pin themselves inside their own scroll container). Cloning such a
|
|
11
|
+
table doubled the header, and the activation math misfired: the in-flow
|
|
12
|
+
`thead` box scrolls under the nav while the sticky `th` cells stay pinned
|
|
13
|
+
and visible. Upstreamed from mcritchie-studio's local copy so consumers can
|
|
14
|
+
drop their forks and enable `Studio.sticky_table_headers`.
|
|
15
|
+
|
|
16
|
+
## 0.12.0 — 2026-07-08
|
|
6
17
|
|
|
7
18
|
### Added
|
|
8
19
|
- **Model-page protocol (v1)** — a reusable, admin-only per-record inspector,
|
|
@@ -175,6 +175,11 @@
|
|
|
175
175
|
if (table.closest("template")) return false;
|
|
176
176
|
if (table.getAttribute("role")?.toLowerCase() === "presentation") return false;
|
|
177
177
|
if (!table.tHead || !table.tHead.querySelector("th")) return false;
|
|
178
|
+
// A table whose header cells are already position:sticky pins itself (usually
|
|
179
|
+
// inside its own scroll container). Cloning it doubles the header — and the
|
|
180
|
+
// activation math misfires there: the in-flow thead box scrolls under the nav
|
|
181
|
+
// while the sticky th cells stay pinned and visible.
|
|
182
|
+
if (getComputedStyle(table.tHead.querySelector("th")).position === "sticky") return false;
|
|
178
183
|
|
|
179
184
|
return true;
|
|
180
185
|
}
|
data/lib/studio/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: studio-engine
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.12.
|
|
4
|
+
version: 0.12.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alex McRitchie
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rails
|
|
@@ -297,7 +296,6 @@ metadata:
|
|
|
297
296
|
source_code_uri: https://github.com/amcritchie/studio-engine/tree/main
|
|
298
297
|
bug_tracker_uri: https://github.com/amcritchie/studio-engine/issues
|
|
299
298
|
changelog_uri: https://github.com/amcritchie/studio-engine/blob/main/CHANGELOG.md
|
|
300
|
-
post_install_message:
|
|
301
299
|
rdoc_options: []
|
|
302
300
|
require_paths:
|
|
303
301
|
- lib
|
|
@@ -312,8 +310,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
312
310
|
- !ruby/object:Gem::Version
|
|
313
311
|
version: '0'
|
|
314
312
|
requirements: []
|
|
315
|
-
rubygems_version:
|
|
316
|
-
signing_key:
|
|
313
|
+
rubygems_version: 4.0.9
|
|
317
314
|
specification_version: 4
|
|
318
315
|
summary: Shared Rails engine providing auth, SSO, error logging, theming, and S3-backed
|
|
319
316
|
image caching
|