Skip to content

Commit

Permalink
Fix overflow of hero image (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarvz authored Dec 10, 2024
1 parent 6c80ff5 commit 07c4a09
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion www/src/components/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (image && "file" in image) {
}
---

<section>
<section data-hero>
<div class="hero-content">
<header>
<h1>{title}</h1>
Expand Down Expand Up @@ -75,6 +75,10 @@ if (image && "file" in image) {
<style>
html[data-has-hero] body {
--sl-content-width: 102rem;

*:has(* > [data-hero]) {
overflow-x: clip;
}
}

section {
Expand Down

0 comments on commit 07c4a09

Please sign in to comment.