feat: add placeholder for images with invalid src
This commit is contained in:
parent
2baba97451
commit
0e3ef370c7
3 changed files with 30 additions and 3 deletions
13
src/css/blocks/image-placeholder.css
Normal file
13
src/css/blocks/image-placeholder.css
Normal file
|
@ -0,0 +1,13 @@
|
|||
.image-placeholder {
|
||||
background-color: var(--color-surface);
|
||||
border-radius: var(--spacing-1);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
font-size: 0.8em;
|
||||
line-height: 1.125em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--spacing-1);
|
||||
text-align: center;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue