Skip to content
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

Moved 288px height to normal_header.scss instead of normal.scss #2427

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

deanshi
Copy link
Contributor

@deanshi deanshi commented Feb 5, 2025

Asana task: [extra] bus e-ink header has incorrect appearance on widget endpoint

Description

  • Fixed issue where header widget height was not being set to 288px
  • Removed 288px from the other two spots in bus_eink and gl_eink

Let me know if removing them/putting them here has adverse effects, I tried to check the places that I could but I'm sure I missed places.

  • Tests added?
Screenshot 2025-02-05 at 3 59 24 PM

@deanshi deanshi requested a review from a team as a code owner February 5, 2025 20:59
@digitalcora
Copy link
Contributor

This might fix the immediate problem Mercury was having but I think there is an opportunity here to clean up just a bit more. The problem in the abstract is that we're setting the absolute sizes of components by targeting the layout slot they're placed in, rather than the component's markup itself — when the component is then rendered in isolation, not in any slot, it doesn't have the right styles.

I think we should be able to:

  • Completely remove width and height for .screen-normal__header and .screen-normal__body, in the normal.scss for Bus E-ink and GL E-ink
  • Move the width value as well as the height value to .normal-header in eink/normal_header.scss
  • Not have to do anything for .body-normal, since absolute width and height are already defined for this (redundantly, prior to this change)

@deanshi
Copy link
Contributor Author

deanshi commented Feb 6, 2025

Sounds like a PLAN. I'll put up the changes soon.

And if you have time, I would love a run down on how it all works from a higher level if possible so I can get a sense of how some of the code interacts with the different possible screens hahaha.

- Moved header height and width to the eink/normal.scss
- Removed header/body height/width from gl and bus normal.scss
Copy link
Contributor

@digitalcora digitalcora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 ✨ thanks!

@digitalcora
Copy link
Contributor

I would love a run down on how it all works from a higher level if possible so I can get a sense of how some of the code interacts with the different possible screens

I wasn't sure how much of the Screens Architecture™ Brett had already gone over but yes, I'd love to explain, at least to the extent I know it myself!

@deanshi
Copy link
Contributor Author

deanshi commented Feb 6, 2025

I would love a run down on how it all works from a higher level if possible so I can get a sense of how some of the code interacts with the different possible screens

I wasn't sure how much of the Screens Architecture™ Brett had already gone over but yes, I'd love to explain, at least to the extent I know it myself!

We talked about PA/ESS, but not so much about Screens in general. So any Screens Architecture™ info would be great!

@deanshi deanshi merged commit c36a25f into main Feb 6, 2025
12 checks passed
@deanshi deanshi deleted the deanshi/eink_height_fix branch February 6, 2025 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants