mobile fix v2

This commit is contained in:
Alexandru 2024-09-10 09:42:33 +03:00
parent c3acc2114b
commit cbcc4d87a6

View File

@ -1,6 +1,6 @@
{% extends 'layout.html' %}
{% block content %}
<div class="container" style="max-width: 900px;">
<div class="container" style="width: 900px;">
{% include 'nav.html' %}
<h2 class="center">{{file[2]}}</h2>
<p class="center">Expires at: {{file[5]|expirein}}</p>
@ -18,7 +18,7 @@
</audio>
{% elif file[2].split('.')[-1] in ['txt', "py", "php", "htm", "html", "css", "js", "ts", "cr", "c", "cpp", "rs", "rst"] %}
{% set filed = file[1] + '.' + file[2].split('.')[-1] %}
<p class="text" readonly style="width: 900px">{{ filed|gettxt|replace('&', '&amp;')|replace('<', '&lt;')|replace('>', '&gt;')|replace('\n', '<br>')|safe}}</p>
<p class="text" readonly>{{ filed|gettxt|replace('&', '&amp;')|replace('<', '&lt;')|replace('>', '&gt;')|replace('\n', '<br>')|safe}}</p>
{% elif file[2].split('.')[-1] in ['md'] %}
{% set filed = file[1] + '.' + file[2].split('.')[-1] %}
<p class="text-md">{{ filed|gettxt|markdown|safe}}</p>