-
Notifications
You must be signed in to change notification settings - Fork 0
Fix/hero 100vh #28
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
Fix/hero 100vh #28
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,11 +5,18 @@ | |
| .hero { | ||
| position: relative; | ||
| min-height: 812px; | ||
| min-height: 100svh; | ||
|
Comment on lines
7
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
At desktop widths where the viewport is taller than the stage's Useful? React with 👍 / 👎. |
||
| overflow: hidden; | ||
| background: var(--color-foreground); | ||
| color: var(--color-foreground); | ||
| } | ||
|
|
||
| @supports (height: 100dvh) { | ||
| .hero { | ||
| min-height: 100dvh; | ||
| } | ||
| } | ||
|
|
||
| .hero__background { | ||
| position: absolute; | ||
| inset: 0; | ||
|
|
@@ -165,11 +172,23 @@ | |
| outline-offset: 4px; | ||
| } | ||
|
|
||
| @media (min-width: 64rem) { | ||
| .hero { | ||
| min-height: 0; | ||
| @media (max-width: 63.9375rem) and (max-height: 700px) { | ||
| .hero__composition { | ||
| top: 112px; | ||
| gap: 22px; | ||
| } | ||
|
|
||
| .hero__polaroid { | ||
| width: 165px; | ||
| height: 198px; | ||
| } | ||
|
Comment on lines
+181
to
+184
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
On viewports at most 700px tall, this 198px border-box still contains 14px top padding, the newly configured 143px portrait, and the unchanged 54px caption, requiring 211px in total. Since the figure does not hide overflow, the caption extends 13px beyond the white polaroid background on the exact short-mobile layouts this media query targets. Useful? React with 👍 / 👎. |
||
|
|
||
| .hero__portrait { | ||
| height: 143px; | ||
| } | ||
| } | ||
|
|
||
| @media (min-width: 64rem) { | ||
| .hero__stage { | ||
| container-type: inline-size; | ||
| width: min(100%, 1440px); | ||
|
|
||
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.
When the user switches languages while viewing a project,
LocalizedTitleStrategyreacts to this new key and sets the document title to the genericProject | KamyCoding/Projekt | KamyCoding. The component's title effect only depends on the project signal, so it does not rerun to restoreJoin | KamyCoding, causing every project page to lose its specific title after a language change.Useful? React with 👍 / 👎.