Skip to content

Commit

Permalink
fix(theme): broken hero heading in certain viewports
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Jan 20, 2025
1 parent e812916 commit 37dbe89
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/client/theme-default/components/VPHero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
<div class="main">
<slot name="home-hero-info-before" />
<slot name="home-hero-info">
<h1>
<h1 class="heading">
<span v-if="name" v-html="name" class="name clip"></span>
<span v-if="text" v-html="text" class="text"></span>
</h1>
Expand Down Expand Up @@ -125,9 +125,14 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
}
}
.heading {
display: flex;
flex-direction: column;
}
.name,
.text {
display: inline-block;
width: fit-content;
max-width: 392px;
letter-spacing: -0.4px;
line-height: 40px;
Expand Down

0 comments on commit 37dbe89

Please sign in to comment.