openlibrary icon indicating copy to clipboard operation
openlibrary copied to clipboard

IA toolbar overflows/wraps on mobile

Open cdrini opened this issue 2 years ago • 8 comments

Problem

image

Reproducing the bug

  1. Go to any page on a small screen
  • Expected behavior: The IA bar should not wrap
  • Actual behavior: It wraps!

Context

  • Browser (Chrome, Safari, Firefox, etc): FF
  • OS (Windows, Mac, etc): Win
  • Logged in (Y/N): Y
  • Environment (prod, dev, local): prod

Breakdown

Requirements Checklist

  • [ ]

Related files

*

Stakeholders

*


Instructions for Contributors

  • Please run these commands to ensure your repository is up to date before creating a new branch to work on this issue and each time after pushing code to Github, because the pre-commit bot may add commits to your PRs upstream.

cdrini avatar Nov 22 '24 16:11 cdrini

hey @cdrini can you specify the issue more specifically so that i can work on it :)

ronibhakta1 avatar Nov 25 '24 16:11 ronibhakta1

hey @cdrini can you specify the issue more specifically so that i can work on it :)

any updates regarding this ?

ronibhakta1 avatar Nov 29 '24 13:11 ronibhakta1

I believe what is being requested is that the Internet Archive Bar is not scaling with the screen size. The desired effect is to be able to see all the objects in the bar without distortion.

Zebtha avatar Dec 02 '24 05:12 Zebtha

Hello, we are a group of university students, and as part of our project, we are contributing to open-source repositories. We would really like to work on this issue, and since our project deadline is approaching, we are eager to get started as soon as possible. Could we please be assigned to this issue? We’ll make sure to follow all contributing guidelines and complete the work on time. Thank you for considering us!

raissg avatar Dec 11 '24 19:12 raissg

@ronibhakta1 we're asking for a proposal of the top Internet Archive bar on mobile Screenshot 2024-12-16 at 3 19 34 PM

Recently we added the language name to the dropdown which is making the contents of the bar overflow.

The first step is to propose a few designs that we can consider as solutions.

One design may be to make the font smaller (proportionate) so everything fits. Another option may be that the language dropdown gets truncated for mobile. If you can think of other solutions, please include them! Thank you for the help.

mekarpeles avatar Dec 16 '24 23:12 mekarpeles

@ronibhakta1 we're asking for a proposal of the top Internet Archive bar on mobile Screenshot 2024-12-16 at 3 19 34 PM

Recently we added the language name to the dropdown which is making the contents of the bar overflow.

The first step is to propose a few designs that we can consider as solutions.

One design may be to make the font smaller (proportionate) so everything fits. Another option may be that the language dropdown gets truncated for mobile. If you can think of other solutions, please include them! Thank you for the help.

@mekarpeles So there were three issues which i countered

  1. The top IA nav bar over lapping
  2. Contents text where not inside the box, there was a over flow in it, you can have a look at it in the first pic.
  3. oversized icon inside the language selection dropdown in second pic
Screenshot 2024-12-17 at 5 47 47 PM

language dropdown icon Screenshot 2024-12-17 at 6 00 32 PM

solved the content info fix here and fixed the design for IA nav bar which looks better here. Screenshot 2024-12-17 at 5 47 14 PM

This is the final website preview on desktop after the changes in the mobile preview Screenshot 2024-12-17 at 5 53 58 PM

ronibhakta1 avatar Dec 17 '24 12:12 ronibhakta1

This issue is specifically for the IA top-bar as @Zebtha has said.

If we add a class to both the language selector and the donate button of e.g. iabar-mobile and create a mobile breakpoint where the font-size of these components becomes .9em and the padding of the ghost-button becomes padding: 5px 7px; we get our desired effect on mobile

image

Screenshot 2024-12-19 at 8 46 27 AM

@raissg + team, would you like to give this a try and we can provide feedback on the PR?

mekarpeles avatar Dec 19 '24 16:12 mekarpeles

Bump on this one; note this is what the site looks like if you have font-scaling enabled for your browser+mobile as well, so it's an accessibility issue.

cdrini avatar Jan 17 '25 20:01 cdrini