sul-dlss / dlme

Digital Library of the Middle East web application, based on Spotlight
https://dlmenetwork.org/
Other
19 stars 2 forks source link

Make better use of horizontal space #1109

Open jacobthill opened 3 years ago

jacobthill commented 3 years ago

As a DLME user I would like larger breakpoints so that when I view the DLME app on my widescreen monitor it is more visually appealing.

On wider screens there is a lot of empty horizontal space

Screen Shot 2021-01-13 at 8 40 36 AM

Consider adopting the latest Bootstrap breakpoints.

ggeisler commented 2 years ago

I believe we have two main options here.

Option 1 - Migrate to Bootstrap 5

This will give us BS5's additional xxl breakpoint of 1400px. It would require considerable work than Option 2 below, and realistically should be done in Spotlight, which might also require some work in Stanford Exhibits to ensure everything looks good there after the upgrade. But this option also benefits the entire Spotlight community (including Stanford Exhibits) rather than just DLME.

Option 2 - Add a new, wider breakpoint to DLME

This is likely a much simpler option, although it only benefits DLME. We would add a new breakpoint to DLME that will provide users who have wide viewports with more (or sometimes, larger) content horizontally compared to the current maximum viewport in DLME. If we pursue this option, I suggest we use 1400px as the new breakpoint, to match the widest breakpoint added in BS5. That might make any customization we do invisible to existing DLME users when we do eventually migrate to BS5. I’m also not sure there is much value to going any wider with the new breakpoint; a wider value will create very long text lines on the home and about pages, and might require much more customization work if we wanted to add additional columns for tiles on the home, browse landing page, and search results gallery view pages.

Customization details

Whichever option we go with, much of the DLME site should just work with the wider content area. Assuming that with whatever option we use the new breakpoint is 1400px, that gives us a new max-width container of 1320px, up from our current max of 1140px (which is what the current 1200px xl breakpoint gives us). Page elements will have more width to utilize, but usually that won't require any specific updates (e.g., paragraph text will just flow wider before breaking to a new line, but we don't have to do anything for that to happen). As noted below, there might be a few elements that need specific adjusting (e.g., through a media query). Here's a screenshot of the homepage with a 1400px breakpoint and the resulting 1320px content area:

Screen Shot 2021-12-15 at 4 28 39 PM

Below are my thoughts on how each page on the DLME site would be affected by a 1400px breakpoint. There will probably be additional details to work out, but that'll be easier to do when the work is underway.

Global

Home

Explore landing page

Search results, Browse category details page, Item details page, About pages

Statistics page

mwerla commented 2 years ago

@ggeisler Thanks for all the ideas. Few comments from my side:

image

It seems that around 12% of users have screen resolution significantly higher than 1400, and that is mostly 1920px.

I was trying to find good examples of pages that look like search results with thumbnails and utilize bigger resolutions. On Amazon, the search results are utilizing full width, but more static content sections are limited to around 1500px area:

image

Polish National Digital Library is also utilizing full width of the screen, but the space for search results thumbnails is limited to slightly more than 1500px:

image
mwerla commented 2 years ago

So, to sum up, I would like to get your thoughts about the two alternatives of what we could do in addition to upgrading 1200px breakpoint to 1400px breakpoint:

We could also combine both approaches, and make 1920px breakpoint design plus utilize full-screen with where justified.

And where the full-screen width use would be justified? I think the main affected page could be the content view:

image
mwerla commented 2 years ago

@ggeisler Regarding your ideas of changes that could be made on different pages types, in general I agree, besides the extra idea of full-width (or almost full-width) utilization on the item page that I described above.

jacobthill commented 2 years ago

@ggeisler do you have thoughts on implementing one larger break point for DLME to cover users above 1400px?

ggeisler commented 2 years ago

@jacobthill I'm still working my way through the issues I've been tagged on recently. I haven't forgotten anything. I just have to balance this work with other work and outages. I hope to get to everything remaining by the end of the week.

jacobthill commented 2 years ago

@ggeisler ok thank you

ggeisler commented 2 years ago

@mwerla @jacobthill I appreciate the ideas and examples @mwerla posted above, but I am struggling to see how it really adds value to worry about doing anything beyond the already proposed 1440px breakpoint.

Any page on the site where we have text, that text will have to be constrained in width for readability purposes. We'll probably have to do this with the new 1440px breakpoint already, and we would certainly have to do that for any new breakpoint larger than 1440px. So I worry about pages like the homepage, where theoretically adding one more visible tile to the sliders would be nice, but also might look odd since we'd have to constrain the width of the intro text above them for readability.

Basically I agree with @mwerla's last comment above that I believe essentially says the item page is only page worth considering doing something. However, even there I'm not sure it is worth explicitly adding a new, extra-large breakpoint.

I say this because we'll have to constrain the width of the text elements (e.g. in @mwerla's example above, the Description value is much too long; if the title of that item was longer we'd have to do the same thing with it). So it's really just about giving the user with a very wide browser the ability to take advantage of that width and see more of the image in the Mirador viewer. I agree this would be a very good thing. But that user can already do that by using the full-screen icon in the viewer. For example, here I used the viewer's full-screen feature with DLME on my external monitor and I get a great, wide view of the item, 2560px wide:

Screen Shot 2022-01-13 at 4 22 33 PM

In other words, the main place a user with a wide browser window would benefit from DLME utilizing the full width of that browser is when looking at a IIIF image in the viewer. And we already support that through Mirador's full-screen feature. So do we really want to dedicate developer effort towards doing anything else related to a breakpoint wider than 1440px?

mwerla commented 2 years ago

Hi @ggeisler. I agree, with the full-screen view in Mirador, the benefits would be really minimal compared to the effort needed. So I'd say - let's do the 1440px only.

marlo-longley commented 2 years ago

Leaving this update as of 3/3/2022. We reviewed the new breakpoint via #1507 but ultimately decided not to ship this until we update to Bootstrap 5. @ggeisler made some comments about the new breakpoint that I am pasting here:

Overall, the new breakpoint works well. Facets are a bit wider (nice for the Date range facet, in particular), more space for the tables on the Contributors page, and the Explore landing pages adjust well (tiles expand to maintain small gutters). I noticed only three areas of concern:

corylown commented 1 year ago

Jacob checked with Wayne and we can postpone this work until Spotlight is updated to use bootstrap 5. Does not need to be completed in the Spring 2023 work cycle.