Make interface responsive

This commit is contained in:
2024-09-09 22:03:31 +02:00
parent 9e0182ed03
commit 4004bcb8f0
7 changed files with 16 additions and 14 deletions

View File

@ -5,7 +5,7 @@
{{if lt . 4}}
<div class="mb-3">
<h2>Artikel</h2>
<div class="grid grid-cols-2 gap-x-4 gap-y-2">
<div class="grid grid-cols-1 md:grid-cols-2 gap-x-4 gap-y-2">
<button class="btn" hx-get="/article/write" hx-target="#page-content">Artikel schreiben</button>
<button class="btn" hx-get="/article/all-rejected" hx-target="#page-content">Abgelehnte Artikel</button>
{{if lt . 3}}<button class="btn" hx-get="/article/all-unpublished" hx-target="#page-content">
@ -22,7 +22,7 @@
{{if lt . 2}}
<div class="mb-3">
<h2>Ausgabe</h2>
<div class="grid grid-cols-2 gap-x-4 gap-y-2">
<div class="grid grid-cols-1 md:grid-cols-2 gap-x-4 gap-y-2">
<button class="btn" hx-get="/issue/this" hx-target="#page-content">Diese Ausgabe</button>
<form class="flex" hx-encoding="multipart/form-data">
<label class="btn text-center" for="pdf-upload">PDF hochladen</label>
@ -36,7 +36,7 @@
{{if lt . 4}}
<div class="mb-3">
<h2>Benutzer</h2>
<div class="grid grid-cols-2 gap-x-4 gap-y-2">
<div class="grid grid-cols-1 md:grid-cols-2 gap-x-4 gap-y-2">
<button class="btn" hx-get="/user/edit/self" hx-target="#page-content">Mein Profil bearbeiten</button>
{{if eq . 0}}<button class="btn" hx-get="/user/create" hx-target="#page-content">
Benutzer hinzufügen