Skip to content

Commit

Permalink
Improve: media/image - background
Browse files Browse the repository at this point in the history
  • Loading branch information
fs5m8 committed Dec 25, 2022
1 parent dabf44c commit 7a97403
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default Vue.extend({
> canvas
width 100%
height 100%
object-fit contain
object-fit cover
> img
width 100%
Expand Down
6 changes: 5 additions & 1 deletion src/client/app/common/views/components/media-image.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
:title="image.name"
@click.prevent="onClick"
>
<img-with-blurhash :hash="image.blurhash" :src="url" :alt="image.name" :title="image.name"/>
<img-with-blurhash class="img" :hash="image.blurhash" :src="url" :alt="image.name" :title="image.name"/>
<div class="gif" v-if="image.type === 'image/gif'">GIF</div>
</a>
</template>
Expand Down Expand Up @@ -106,6 +106,10 @@ export default Vue.extend({
background-size contain
background-repeat no-repeat
> .img
color var(--text)
background-color var(--bg)
> .gif
background-color var(--text)
border-radius 6px
Expand Down

0 comments on commit 7a97403

Please sign in to comment.