Skip to content

Conversation

@gumaerc
Copy link
Contributor

@gumaerc gumaerc commented Oct 1, 2024

What are the relevant tickets?

Follow-up to #1622

Description (What does it do?)

This PR fixes a bug with Safari where the MIT logo in the header was not being scaled properly due to the width / height only being applied to the parent and not directly to the img element

Screenshots (if appropriate):

image

How can this be tested?

  • Spin up mit-learn on this branch
  • Visit the home page at http://localhost:8062 in Safari
  • Ensure that the header MIT logo looks correct

@gumaerc gumaerc added the Needs Review An open Pull Request that is ready for review label Oct 1, 2024
@shanbady shanbady self-assigned this Oct 1, 2024
@shanbady shanbady self-requested a review October 1, 2024 17:14
@gumaerc gumaerc changed the title apply StyledMITLogoLink styles directly to img element fix Safari MIT logo bug Oct 1, 2024
Copy link
Contributor

@shanbady shanbady left a comment

Choose a reason for hiding this comment

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

There are a few issues I am seeing. One that only happens in safari if you visit the units page:
Screenshot 2024-10-01 at 1 16 47 PM
The other issue (less severe) is that the text in the header scrunches at a certain size
Screenshot 2024-10-01 at 1 15 25 PM

The other thing I just noticed is that it appears the header doesn't reflect logged in state (seeing this in safari only). I logged in via django admin and go back to the home page and I am not shown as logged in

Copy link
Contributor

@shanbady shanbady left a comment

Choose a reason for hiding this comment

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

Approving to get header changes out. will create tickets for other items noticed.

@shanbady shanbady added Waiting on author and removed Needs Review An open Pull Request that is ready for review labels Oct 1, 2024
@gumaerc gumaerc merged commit 8d5d211 into main Oct 1, 2024
10 checks passed
@odlbot odlbot mentioned this pull request Oct 1, 2024
3 tasks
mbertrand pushed a commit that referenced this pull request Oct 4, 2024
* apply StyledMITLogoLink styles directly to img element

* fix app container padding based on header height
@rhysyngsun rhysyngsun deleted the cg/safari-header-logo-bug-fix branch February 7, 2025 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants