openvibers/afresume Commits

Fix role rotator layout jump: fixed height + nowrap

OP OpenVibers committed 18 May 2026 · ca8e65c534 · 1 file, +8 −2


Changes

ddiff --git a/src/components/Hero.astro b/src/components/Hero.astro
iindex 17dceb4..6b43978 100644
---- a/src/components/Hero.astro
++++ b/src/components/Hero.astro
@@@ -118,9 +118,15 @@
font-size: clamp(2.5rem,2.4vw,2.5rem);
color: var(--accent);
margin: 0 0 1rem;
-- min-height: 1.6em;
++ height: 1.6em;
++ overflow: hidden;
++ }
++ .hero__rotator {
++ display: block;
++ white-space: nowrap;
++ overflow: hidden;
++ text-overflow: ellipsis;
}
-- .hero__rotator { display: inline-block; }
.hero__lead {
max-width: 56ch;
color: var(--muted);