1
0
Fork 0
forked from s3lph/matemat

Disable text selection and image dragging for better touchscreen support

This commit is contained in:
s3lph 2021-08-07 21:06:24 +02:00
parent 85410e09e5
commit b804d57d24
3 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,12 @@
* {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.thumblist-item { .thumblist-item {
display: inline-block; display: inline-block;
margin: 5px; margin: 5px;

View file

@ -59,7 +59,7 @@
</span><br/> </span><br/>
{% endif %} {% endif %}
<div class="imgcontainer"> <div class="imgcontainer">
<img src="/static/upload/thumbnails/products/{{ product.id }}.png" alt="Picture of {{ product.name }}"/> <img src="/static/upload/thumbnails/products/{{ product.id }}.png" alt="Picture of {{ product.name }}" draggable="false"/>
{% set pstock = stock.get_stock(product) %} {% set pstock = stock.get_stock(product) %}
{% if pstock is not none %} {% if pstock is not none %}
<span class="thumblist-stock">{{ pstock }}</span> <span class="thumblist-stock">{{ pstock }}</span>

View file

@ -14,7 +14,7 @@
<a href="/touchkey?uid={{ user.id }}&username={{ user.name }}"> <a href="/touchkey?uid={{ user.id }}&username={{ user.name }}">
<span class="thumblist-title">{{ user.name }}</span><br/> <span class="thumblist-title">{{ user.name }}</span><br/>
<div class="imgcontainer"> <div class="imgcontainer">
<img src="/static/upload/thumbnails/users/{{ user.id }}.png" alt="Avatar of {{ user.name }}"/> <img src="/static/upload/thumbnails/users/{{ user.id }}.png" alt="Avatar of {{ user.name }}" draggable="false"/>
</div> </div>
</a> </a>
</div> </div>