Textures tab: keep the preview beside the Used by panel #417

Manually merged
github merged 1 commit from github-bot/gh-417 into gh-pr/417/base 2026-11-27 02:10:16 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-26 22:07 UTC · original
holdmysocks:claude/people-usedby-layout → master · +5 −0 · 1 files · 1 commits · merged 2026-11-27 02:01 UTC

Textures tab: the texture preview no longer draws over the "Used by" panel. At fit zoom, a selected texture was sized to the whole space to the right of the list and covered most of the panel's text.

Cause: the preview was laid out in the same area the "Used by" panel had just been placed in, so its fit size didn't leave room for the panel.

Change (texture_view.rs): the preview goes in a central panel after the list and "Used by" panels, the same way the Jobs tab lays out its panels. The preview code moves unchanged into preview_ui.

Verified:

  • cargo test --release --locked -p sixng-gui passes.
  • A window screenshot of --texture 363b549e1a8a2277 at 1200×900 shows the 512 px texture scaled to fit between the list and the panel, and the panel's text (3 characters, 149 unnamed wardrobes) readable.

Not done:

  • Zoomed-in panning and the mouse-wheel stepping over the preview weren't tried by hand. Their code is unchanged, but it now measures the central panel's area.
**@⁠holdmysocks** on GitHub · 2026-11-26 22:07 UTC · [original](https://github.com/holdmysocks/SixNG/pull/417) `holdmysocks:claude/people-usedby-layout` → `master` · +5 −0 · 1 files · 1 commits · merged 2026-11-27 02:01 UTC Textures tab: the texture preview no longer draws over the "Used by" panel. At fit zoom, a selected texture was sized to the whole space to the right of the list and covered most of the panel's text. **Cause:** the preview was laid out in the same area the "Used by" panel had just been placed in, so its fit size didn't leave room for the panel. **Change** (texture_view.rs): the preview goes in a central panel after the list and "Used by" panels, the same way the Jobs tab lays out its panels. The preview code moves unchanged into `preview_ui`. **Verified:** - `cargo test --release --locked -p sixng-gui` passes. - A window screenshot of `--texture 363b549e1a8a2277` at 1200×900 shows the 512 px texture scaled to fit between the list and the panel, and the panel's text (3 characters, 149 unnamed wardrobes) readable. **Not done:** - Zoomed-in panning and the mouse-wheel stepping over the preview weren't tried by hand. Their code is unchanged, but it now measures the central panel's area.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:39:35 +00:00
github-bot changed target branch from master to gh-pr/417/base 2026-11-27 02:10:14 +00:00
github manually merged commit fce5325dd9 into gh-pr/417/base 2026-11-27 02:10:16 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.