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 and keturiosakys committed Dec 11, 2024
1 parent 11a1365 commit 7f3d52b
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 7f3d52b

Please sign in to comment.