Skip to content

Commit

Permalink
placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo committed Feb 7, 2022
1 parent 05610fd commit a19aee1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
>
<div class="image-background">
<img
v-if="getURL"
class="image-cropped"
:src="getURL"
:alt="altTag"
loading="lazy"
:width="width"
:height="height"
>
/>
<span v-if="!getURL" class="icon-eye-slash image-placeholder"></span>
</div>
</div>
<div
Expand Down
10 changes: 10 additions & 0 deletions build/media_source/com_media/scss/components/_media-browser.scss
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,16 @@
border-radius: $grid-item-border-radius;
}

.image-placeholder {
display: flex;
justify-content: center;
align-items: center;
aspect-ratio: 1/1;
max-width: 100%;
height: auto;
color: #9d9d9d;
}

.file-background, .folder-background {
padding-bottom: 100%;
background-color: hsl(var(--hue), 20%, 97%);
Expand Down

0 comments on commit a19aee1

Please sign in to comment.