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

209-nav-logo-size #210

Merged
merged 1 commit into from
Feb 27, 2024
Merged

209-nav-logo-size #210

merged 1 commit into from
Feb 27, 2024

Conversation

alishaevn
Copy link
Member

@alishaevn alishaevn commented Feb 27, 2024

story

contain the logo in the navbar

previously, wide logo's would overflow the width of the Navbar.Brand. this commit adds height to the brand element, instead of the logo image, containing the logo height and width within the Navbar.Brand.

there isn't a bootstrap element that sets height to a specific value. the choice was to use inline styles or create a new class. I opted to create a new class. it's specific to the Header component so it's not in globals.scss. the name "custom-navbar-brand" makes it easier to denote that it's our class and not bootstrap's when inspecting from the browser.

demo

example with tall logo image image
example with wide logo image image

previously, wide logo's would overflow the width of the Navbar.Brand. this
commit adds height to the brand element, instead of the logo image,
containing the logo height and width within the Navbar.Brand.

there isn't a bootstrap element that sets height to a specific value. the
choice was to use inline styles or create a new class. I opted to create
a new class. it's specific to the Header component so it's not in
globals.scss. the name "custom-navbar-brand" makes it easier to denote
that it's our class and not bootstrap's when inspecting from the browser.

- ref: #209
@alishaevn alishaevn linked an issue Feb 27, 2024 that may be closed by this pull request
2 tasks
Copy link
Collaborator

@labradford labradford left a comment

Choose a reason for hiding this comment

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

I'm not able to start up this app, but the code looks good to me.

@alishaevn alishaevn merged commit f2b84fd into main Feb 27, 2024
3 checks passed
@alishaevn alishaevn deleted the 209-nav-logo-size branch February 27, 2024 23:24
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.

adjust logo size on smaller screens
3 participants