more keyboard shortcuts

This commit is contained in:
rimu 2024-01-20 09:51:25 +13:00
parent 70768dadff
commit 8045b4fad5
2 changed files with 3 additions and 3 deletions

View file

@ -82,7 +82,7 @@
</p>
{% if post.type == POST_TYPE_LINK %}
<p><small><a href="{{ post.url }}" rel="nofollow ugc" target="_blank" class="post_link">{{ post.url|shorten_url }}
<img src="/static/images/external_link_black.svg" class="external_link_icon" alt="External link" /></a>
<img src="/static/images/external_link_black.svg" class="external_link_icon" alt="External link" class="post_link" /></a>
</small></p>
{% if 'youtube.com' in post.url %}
<div style="padding-bottom: 56.25%; position: relative;"><iframe style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;" src="https://www.youtube.com/embed/{{ post.youtube_embed() }}?rel=0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; fullscreen" width="100%" height="100%" frameborder="0"></iframe></div>

View file

@ -16,7 +16,7 @@
<div class="thumbnail">
{% if post.type == POST_TYPE_LINK %}
<a href="{{ post.url }}" rel="nofollow ugc" target="_blank" aria-label="{{ _('Read article') }}"><img src="{{ post.image.thumbnail_url() }}"
alt="{{ post.image.alt_text if post.image.alt_text else '' }}" height="50" class="post_link" /></a>
alt="{{ post.image.alt_text if post.image.alt_text else '' }}" height="50" /></a>
{% elif post.type == POST_TYPE_IMAGE %}
{% if post.image_id %}
<a href="{{ post.image.view_url() }}" rel="nofollow ugc" target="_blank"><img src="{{ post.image.thumbnail_url() }}"
@ -34,7 +34,7 @@
{% if post.url and 'youtube.com' in post.url %}
<span class="fe fe-video"></span>
{% endif %}
<a href="{{ post.url }}" rel="nofollow ugc" target="_blank">
<a href="{{ post.url }}" rel="nofollow ugc" target="_blank" class="post_link">
<img src="/static/images/external_link_black.svg" class="external_link_icon" alt="External link" />
</a>
<span class="domain_link">(<a href="/d/{{ post.domain_id }}">{{ post.domain.name }}</a>)</span>