Apply patch
This commit is contained in:
parent
c013c7a298
commit
88e4b92b8d
9 changed files with 41 additions and 35 deletions
src/components
16
src/components/placeholder.astro
Normal file
16
src/components/placeholder.astro
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue