add different icon for embeded content

This commit is contained in:
ArabCoders 2025-03-08 18:22:50 +03:00
parent 64c84e5c3a
commit fbdeec6a99
4 changed files with 8 additions and 3 deletions

View file

@ -226,7 +226,8 @@ hr {
cursor: pointer;
}
.play-icon {
.play-icon,
.embed-icon {
position: absolute;
z-index: 2;
@ -245,6 +246,10 @@ hr {
opacity: 0.4;
}
.embed-icon {
background-image: url(/images/embed-icon.png);
}
.play-icon:hover,
.play-icon:focus,
.play-active {

View file

@ -104,7 +104,7 @@
<img v-else src="/images/placeholder.png" />
</span>
<span v-else-if="isEmbedable(item.url)" @click="embed_url = getEmbedable(item.url)" class="play-overlay">
<div class="play-icon"></div>
<div class="play-icon embed-icon"></div>
<img @load="e => pImg(e)" :src="'/api/thumbnail?url=' + encodePath(item.extras.thumbnail)"
v-if="item.extras?.thumbnail" />
<img v-else src="/images/placeholder.png" />

View file

@ -54,7 +54,7 @@
<div v-if="false === hideThumbnail" class="card-image">
<figure class="image is-3by1">
<span v-if="isEmbedable(item.url)" @click="() => embed_url = getEmbedable(item.url)" class="play-overlay">
<div class="play-icon"></div>
<div class="play-icon embed-icon"></div>
<img @load="e => pImg(e)" :src="'/api/thumbnail?url=' + encodePath(item.extras.thumbnail)"
v-if="item.extras?.thumbnail" />
<img v-else src="/images/placeholder.png" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB