From 64123f284a1015e99a474304251ed63672feee45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz> Date: Sun, 8 Jan 2023 12:38:05 +0100 Subject: [PATCH] Upravy tabulky --- VERSION | 2 +- templates/shortcuts.html.ep | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/VERSION b/VERSION index c043eea..b1b25a5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.2.1 +2.2.2 diff --git a/templates/shortcuts.html.ep b/templates/shortcuts.html.ep index 53c0b2a..60f043b 100644 --- a/templates/shortcuts.html.ep +++ b/templates/shortcuts.html.ep @@ -1,4 +1,4 @@ -<div id="App"> +<div id="App" class="content-block"> <form @submit.prevent="addShortcut" v-cloak> <div class="card elevation-4 space-y-2 my-4"> @@ -31,20 +31,20 @@ <table class="table table--striped table--bordered table-auto w-full" v-cloak> <thead> <tr> - <th class="text-left w-16">Zkratka</th> + <th class="text-left">Zkratka</th> <th class="text-left">URL</th> - <th class="text-left w-16">Přesměrování</th> - <th class="text-left w-16">Kliky</th> - <th class="text-left w-40"></th> + <th class="text-left">Přesměrování</th> + <th class="text-left">Kliky</th> + <th class="text-left"></th> </tr> </thead> <tbody> <tr v-for="shortcut in shortcuts" > - <td class="text-bold" @click="showEdit(shortcut)" >{{shortcut.shortcut}}</td> + <td class="text-bold w-32" @click="showEdit(shortcut)" >{{shortcut.shortcut}}</td> <td v-bind:title="shortcut.url" @click="showEdit(shortcut)" >{{ stripURL(shortcut.url) }}</td> - <td @click="showEdit(shortcut)">{{ shortcut.code == 301 ? '301 trvalé' : '302 dočasné'}}</td> - <td @click="showEdit(shortcut)" class="text-right">{{shortcut.counter}}</td> - <td> + <td class="w-24" @click="showEdit(shortcut)">{{ shortcut.code == 301 ? '301 trvalé' : '302 dočasné'}}</td> + <td class="w-16 text-right" @click="showEdit(shortcut)">{{shortcut.counter}}</td> + <td class="w-40"> <i class="ico--link cursor-pointer mx-1" @click="showInfo(shortcut)" title="Zkopirovat odkaz"></i> <i class="ico--calendar cursor-pointer mx-1" @click="window.location.href ='/shortcut/' + shortcut.id" title="Statistika"></i> <i class="ico--equalizer cursor-pointer mx-1" @click="showEdit(shortcut)" title="Editovat"></i> -- GitLab