Skip to content

Commit

Permalink
fix height of hero
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten committed Sep 19, 2023
1 parent 3eeb697 commit 327b20e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src-11ty/_includes/base_card_with_hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@

<style>
.hero {
padding-top: 63%;
position: relative;
height: 300px;
border-top-right-radius: var(--ha-card-border-radius, 4px);
border-top-left-radius: var(--ha-card-border-radius, 4px);
}
.hero img {
position: absolute;
top: 0;
left: 0;
width: 100%;
border-top-right-radius: var(--ha-card-border-radius, 4px);
border-top-left-radius: var(--ha-card-border-radius, 4px);
height: 100%;
object-fit: cover;
}
</style>

Expand Down

0 comments on commit 327b20e

Please sign in to comment.