Apply patch

This commit is contained in:
Firq 2025-04-08 09:32:41 +00:00
parent c013c7a298
commit 88e4b92b8d
9 changed files with 41 additions and 35 deletions
src/components

View file

@ -0,0 +1,16 @@
---
export interface Props {
height?: string
}
const { height } = Astro.props
const ph_height = height || "5rem"
---
<div class="placeholder"></div>
<style define:vars={{ph_height}}>
.placeholder {
visibility: hidden;
width: 100%;
height: var(--ph_height);
}
</style>