sul-dlss / exhibits

Stanford University Libraries online exhibits showcase
https://exhibits.stanford.edu
Other
19 stars 7 forks source link

Provide text arrangement options for item row widgets #2490

Open caaster opened 1 month ago

caaster commented 1 month ago

Sometimes the text displayed next to an item row widget has an awkward line wrap, consisting of just a few words. This is aesthetically jarring to the eye. It is desirable to provide for some kind of text arrangement options for item row widgets so that whether or not a text line or lines wrap under an image can be configured by the exhibit creator.

jcoyne commented 1 month ago

@caaster can you provide a screenshot and URL where we can see the problem? We might be able to use text-wrap: balance https://developer.chrome.com/docs/css-ui/css-text-wrap-balance

caaster commented 1 month ago

@jcoyne Here are 2 screenshots. The first is from https://exhibits.stanford.edu/wong-test/feature/multiplicity-in-martin-wong-s-california-work:

Screen Shot 2024-07-22 at 4 10 02 PM

Here is another example, on https://exhibits.stanford.edu/wong-test/feature/pieces-of-the-puzzle-martin-wong-s-multiplicity:

Screen Shot 2024-07-22 at 4 09 33 PM

jcoyne commented 1 month ago

Oh. I think that will be a challenge. I think the wrapping will depend on what font size and zoom the user has selected.

caaster commented 1 month ago

@jcoyne exhibit creators don't have a font size or zoom choice with this or any other widget.