-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
699 Update responsive design up to 200% zoom #727
Conversation
Hiya @Kenny4297 - that was fast work! Regarding the concerns - yes, I agree it is hard to make the site responsive! Have you come across any project structures that better enable responsive design? Any examples? We're happy to learn! Make sure you run the formatter on the frontend - the workflow is complaining. ( And finally a heads up and apology - all the maintainers work on this as part of our day job, and it is coming up to Christmas hols, so I'm afraid we'll only be able to give this PR some attention after the new year. So take care until then :) p.s. for my own interest, how did you come across the project? |
Hi Scott:
Regarding project structure: From my experiences, I would put all the
header CSS in one file. This way it makes things much easier.
Formatter: I can run the formatter and give you another PR soon.
How I found this project: I used the following site:
https://goodfirstissues.com/index.html
It's surprising how difficult many of the first issues are, so to keep
things simple (especially with my day job as a lead engineer) I use this
site to quickly find any applications that need 'basic' assistance.
Additional Notes: As an AI engineer myself, I am quite keen on the type of
code that AI puts out. In my personal opinion, some of the code is over
complicated and can be refactored. The much of the code in the header, in
my opinion, is overkill, and thus it makes it hard to edit and adjust.
Thanks again for letting me work on this, it was a challenge! Also, connect
with me on LinkedIn!
https://www.linkedin.com/in/kedgard-cordero/
Happy Holidays,
Kedgard
…On Fri, Dec 22, 2023 at 11:54 AM Peter Marsh ***@***.***> wrote:
Hiya @Kenny4297 <https://github.com/Kenny4297> - that was fast work!
Regarding the concerns - yes, I agree it is hard to make the site
responsive! Have you come across any project structures that better enable
responsive design? Any examples? We're happy to learn!
Make sure you run the formatter on the frontend - the workflow is
complaining. (cd frontend then npm run format)
And finally a heads up and apology - all the maintainers work on this as
part of our day job, and it is coming up to Christmas hols, so I'm afraid
we'll only be able to give this PR some attention after the new year. So
take care until then :)
p.s. for my own interest, how did you come across the project?
—
Reply to this email directly, view it on GitHub
<#727 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXE6WKRMEXYMKBORDML43V3YKXCL7AVCNFSM6AAAAABBABWS3CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRXHE2DAMRUGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a great idea to incorporate media queries to help with different sizes. I have a few main comments to make to start with.
I would prefer to not change so much of the font sizing in the media queries. Since all the font sizes are defined in rem already, it means that when you adjust the zoom level, all the fonts will scale exactly according to that zoom level.
I notice that, on my laptop screen, the header fonts appear smaller at zoom levels 150% and 200% when compared to 100%! We'd really like to avoid this since the idea behind us supporting zoom levels is mainly to support users who struggle with sight. We'd much prefer to adjust the layout, and padding to make room rather than adjusting fonts. See the screenshot on the issue (labelled "Roughly expected outcome") :)
I wonder if, to support our current css structure, we could put the media queries within our classes? So instead of
@media (...) {
.my-class {...}
.my-other-class{...}
}
we do
```css
.my-class {
@media(...){...}
}
.my-other-class {
@media(...){...}
}
These are my first thoughts as I look at the PR. It might be worth waiting a couple of weeks for the more senior folk on my team to respond because they might disagree with me, or have more concrete suggestions.
Again, sorry that the PR isn't getting so much attention at the minute! In the next week or two, we'll get back to our regular schedules and have time to look at it.
@media (max-width: 760px) { | ||
.themed-button img { | ||
display: none; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of hiding icons to make space
flex-shrink: 1; | ||
} | ||
.main-header { | ||
padding: 0rem 0rem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be shortened
padding: 0rem 0rem; | |
padding: 0; |
height: 3.5rem; | ||
} | ||
.main-header-right { | ||
gap: 0rem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be shortened to
gap: 0rem; | |
gap: 0; |
@media (max-width: 760px) { | ||
.main-header .themed-button { | ||
font-size: 0.5rem; | ||
padding: 0.4rem 0.4rem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
padding: 0.4rem 0.4rem; | |
padding: 0.4rem; |
I really like the changes that have been implemented. I'd like to provide some additional insights: 1) Scaling of Font Sizes with Zoom LevelsObservation:
Comment:
Suggestion:
2) Shortening '0rem' to '0'Proposal:
Note:
Thanks for letting me work on this! Best regards, |
Hi Kedgard, Thanks for your work on this, and your patience while most of us were away over the winter break. Kind regards, |
@Kenny4297 FWIW We've not really looked into responsive design yet, and we don't even have issues in our backlog for it, at the moment, as there are UX challenges around using this application on smaller devices. That being said, as you suggest we would likely want to use a limited set of media queries to set some values application-wide, such as base font size and maybe a spacing/padding strategy. Zoom is of course tricky, because it can affect which media query is active. We could maybe use resolution in dppx to distinguish if we are zoomed in or just on a smaller device. As @pmarsh-scottlogic points out, we don't really want an increase in zoom to decrease the font size. |
Hi @Kenny4297 We're closing the PR for now since you won't have time to work on it, and we'd like to discuss within the team and be sure on what the outcome of the issue should be before work continues. Apologies that the requirements weren't crystal clear. Also in hindsight, it might be a bit in-depth for a "good first issue". That being said, it was good to have somefresh insight to inform our choices going forward. In particular, we're already working to add some css linting to deal with the 0rem problem :) If you want to continue work on the issue when you have more free time, then please leave us a comment and we'll happily discuss! Happy new year |
Thanks again for letting me work on it! I'll reach back out if I get some time for either this issue or others! |
Description
I have implemented media queries across all CSS files pertaining to the Header. These modifications ensure proper display and functionality of the header at up to 200% zoom.
Screenshots
Here's how the header looks at 200% zoom:
Notes
While this project's structure—with multiple components and corresponding CSS files—works well with JavaScript logic implementation, it presents challenges in styling, particularly for the header.
Concerns
In my personal opinion, I would be worried about the scalability of this project when it comes to responsive design. Although it is possible to make this application responsive, the fact that multiple CSS files are used (and scattered) throughout the application with regards to one section of the application (the header, for example) will make responsive design difficult.
Thanks for letting me contribute!!