forked from rDrama/rDrama
fix
parent
b01b8a3e9f
commit
f48c704f1b
|
@ -241,7 +241,7 @@
|
||||||
{% if not p.is_image and p.thumb_url and not p.embed_url %}
|
{% if not p.is_image and p.thumb_url and not p.embed_url %}
|
||||||
<div class="hidden md:block pl-3">
|
<div class="hidden md:block pl-3">
|
||||||
<a rel="nofollow noopener noreferrer" href="{{p.realurl(v)}}" {% if not v or v.newtabexternal %}target="_blank"{% endif %}>
|
<a rel="nofollow noopener noreferrer" href="{{p.realurl(v)}}" {% if not v or v.newtabexternal %}target="_blank"{% endif %}>
|
||||||
<img loading="lazy" src="{{p.thumb_url}}" class="post-thumbnail shadow-sm p-1 w-32 h-20 object-cover object-cover bg-white border border-gray-300" alt="post thumbnail">
|
<img loading="lazy" src="{{p.thumb_url}}" class="post-thumbnail shadow-sm p-[3px] w-32 h-20 object-cover object-cover bg-white border border-gray-300" alt="post thumbnail">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -193,22 +193,22 @@
|
||||||
<div class="flex flex-row flex-nowrap pl-5 md:pl-8">
|
<div class="flex flex-row flex-nowrap pl-5 md:pl-8">
|
||||||
<div style="z-index: 3;">
|
<div style="z-index: 3;">
|
||||||
{% if p.club and not (v and v.paid_dues) %}
|
{% if p.club and not (v and v.paid_dues) %}
|
||||||
<img loading="lazy" src="/assets/images/emojis/marseyglow.webp" class="post-thumbnail shadow-sm p-1 w-32 h-20 object-cover object-cover bg-white border border-gray-300">
|
<img loading="lazy" src="/assets/images/emojis/marseyglow.webp" class="post-thumbnail shadow-sm p-[3px] w-32 h-20 object-cover object-cover bg-white border border-gray-300">
|
||||||
{% elif not p.url %}
|
{% elif not p.url %}
|
||||||
<a {% if v and v.newtab %}target="_blank"{% endif %} {% if v %}href="{{p.permalink}}"{% else %}href="/logged_out{{p.permalink}}"{% endif %}>
|
<a {% if v and v.newtab %}target="_blank"{% endif %} {% if v %}href="{{p.permalink}}"{% else %}href="/logged_out{{p.permalink}}"{% endif %}>
|
||||||
<img loading="lazy" src="{{p.thumb_url}}" class="post-thumbnail shadow-sm p-1 w-32 h-20 object-cover object-cover bg-white border border-gray-300">
|
<img loading="lazy" src="{{p.thumb_url}}" class="post-thumbnail shadow-sm p-[3px] w-32 h-20 object-cover object-cover bg-white border border-gray-300">
|
||||||
</a>
|
</a>
|
||||||
{% elif p.is_image %}
|
{% elif p.is_image %}
|
||||||
<button data-bs-toggle="modal" data-bs-target="#expandImageModal" data-bs-url="{{p.realurl(v)}}" onclick="expandDesktopImage('{{ p.realurl(v) }}')">
|
<button data-bs-toggle="modal" data-bs-target="#expandImageModal" data-bs-url="{{p.realurl(v)}}" onclick="expandDesktopImage('{{ p.realurl(v) }}')">
|
||||||
<img loading="lazy" src="{{p.thumb_url}}" class="post-thumbnail shadow-sm p-1 w-32 h-20 object-cover object-cover bg-white border border-gray-300">
|
<img loading="lazy" src="{{p.thumb_url}}" class="post-thumbnail shadow-sm p-[3px] w-32 h-20 object-cover object-cover bg-white border border-gray-300">
|
||||||
</button>
|
</button>
|
||||||
{% elif (p.url and p.url.lower().endswith('.mp4')) or (p.embed_url and "youtu" in p.domain) or (p.url and "streamable.com/e/" in p.url) %}
|
{% elif (p.url and p.url.lower().endswith('.mp4')) or (p.embed_url and "youtu" in p.domain) or (p.url and "streamable.com/e/" in p.url) %}
|
||||||
<button onclick="document.getElementById('video-{{p.id}}').classList.toggle('hidden')">
|
<button onclick="document.getElementById('video-{{p.id}}').classList.toggle('hidden')">
|
||||||
<img loading="lazy" src="{{p.thumb_url}}" class="post-thumbnail shadow-sm p-1 w-32 h-20 object-cover object-cover bg-white border border-gray-300">
|
<img loading="lazy" src="{{p.thumb_url}}" class="post-thumbnail shadow-sm p-[3px] w-32 h-20 object-cover object-cover bg-white border border-gray-300">
|
||||||
</button>
|
</button>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a {% if not v or v.newtabexternal %}target="_blank"{% endif %} rel="nofollow noopener noreferrer" href="{{p.realurl(v)}}">
|
<a {% if not v or v.newtabexternal %}target="_blank"{% endif %} rel="nofollow noopener noreferrer" href="{{p.realurl(v)}}">
|
||||||
<img loading="lazy" src="{{p.thumb_url}}" class="post-thumbnail shadow-sm p-1 w-32 h-20 object-cover object-cover bg-white border border-gray-300">
|
<img loading="lazy" src="{{p.thumb_url}}" class="post-thumbnail shadow-sm p-[3px] w-32 h-20 object-cover object-cover bg-white border border-gray-300">
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue