fix(theme): broken hero heading in certain viewports

pull/4502/head
Divyansh Singh 8 months ago
parent e8129167c7
commit 37dbe895d4

@ -29,7 +29,7 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
<div class="main"> <div class="main">
<slot name="home-hero-info-before" /> <slot name="home-hero-info-before" />
<slot name="home-hero-info"> <slot name="home-hero-info">
<h1> <h1 class="heading">
<span v-if="name" v-html="name" class="name clip"></span> <span v-if="name" v-html="name" class="name clip"></span>
<span v-if="text" v-html="text" class="text"></span> <span v-if="text" v-html="text" class="text"></span>
</h1> </h1>
@ -125,9 +125,14 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
} }
} }
.heading {
display: flex;
flex-direction: column;
}
.name, .name,
.text { .text {
display: inline-block; width: fit-content;
max-width: 392px; max-width: 392px;
letter-spacing: -0.4px; letter-spacing: -0.4px;
line-height: 40px; line-height: 40px;

Loading…
Cancel
Save