peoplescollection.wales: Item image can't be seen and text is squeezed too much to the left

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
jobbautista9
Board Warrior
Board Warrior
Posts: 1184
Joined: 2020-11-03, 06:47
Location: Philippines

peoplescollection.wales: Item image can't be seen and text is squeezed too much to the left

Post by jobbautista9 » 2026-03-29, 04:14

I can't see the image for the item in https://www.peoplescollection.wales/items/9729, and the description is difficult to read since it's pushed to the left side of the viewport too much with excessive margins. Tested in a fresh portable of 34.1.0.

Probably relevant output from the devtools web console (link to the common JavaScript file referenced here: https://www.peoplescollection.wales/sit ... YyfvdsrdeQ):

Code: Select all

UV instance created: Object { options: Object, adapter: undefined, _el: <div.uv-iiif-extension-host.en-gb.right-panel-enabled.footer-panel-enabled.uv-openseadragon-extension.browser-Firefox.browser-version-128.fullscreen-supported>, contentType: "iiifManifestId", _contentType: "iiifManifestId", _externalEventListeners: Array[7], _assignedContentHandler: Object, assignedContentHandler: Object }
js_84XpE6Em1zVNwVKc0gU88tqsR81DLfTS-szDqbFtIX4.js:2:863

Universal Viewer created for manifest: /iiif/manifest/9729
js_84XpE6Em1zVNwVKc0gU88tqsR81DLfTS-szDqbFtIX4.js:2:2132

Base config loaded: Object { options: Object, modules: Object, localisation: Object, content: Object }
js_84XpE6Em1zVNwVKc0gU88tqsR81DLfTS-szDqbFtIX4.js:2:1070

Config after data-config merge: Object { options: Object, modules: Object, localisation: Object, content: Object }
js_84XpE6Em1zVNwVKc0gU88tqsR81DLfTS-szDqbFtIX4.js:2:1179

Drupal config from settings: Object { options: Object }
js_84XpE6Em1zVNwVKc0gU88tqsR81DLfTS-szDqbFtIX4.js:2:1304

Final UV config after all merges: Object { options: Object, modules: Object, localisation: Object, content: Object }
js_84XpE6Em1zVNwVKc0gU88tqsR81DLfTS-szDqbFtIX4.js:2:1427
Image

Tired of creating stuff!

Avatar artwork by Shinki669: https://www.pixiv.net/artworks/113645617

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2549
Joined: 2018-05-05, 13:29

Re: peoplescollection.wales: Item image can't be seen and text is squeezed too much to the left

Post by vannilla » 2026-03-29, 18:41

It might be something about disply: grid. It's not the first website I see this happens, but it's all set up by some framework and the CSS rules for the grid layout are rather complex that reverse engineering the intended behaviour is rather difficult.

User avatar
adoxa
Astronaut
Astronaut
Posts: 616
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: peoplescollection.wales: Item image can't be seen and text is squeezed too much to the left

Post by adoxa » 2026-03-30, 01:16

It seems grid-column does not recognise the start / end short form (plus it uses nested CSS, and there are errors in it so my Denest extension wouldn't work). Here's a Modify HTTP Response filter to work around all that (it will work without Denest, but you may need to restart, so MHR applies before Denest; if it denested the top "Cymraeg" button gets a border). There's still an issue that the image doesn't center and it will probably break on a site update (just removing _62H from the path may be enough).

Code: Select all

[["www.peoplescollection.wales",["/css_62H/",["0.8em;//","","/fl\\s/","","/grid-column:(calc\\(\\(var\\(--anrt-grid-columns\\) - var\\(--anrt-grid-col-span\\)\\) \\/ 2 \\+ 1\\)) \\/ (span var\\(--anrt-grid-col-span\\))/g","grid-column-start:$1;grid-column-end:$2"]]]]