From 4f524615941e8b0a18988d986aa4918c7172e6c5 Mon Sep 17 00:00:00 2001
From: Roman Sergienko <romasergienko@outlook.com>
Date: Fri, 04 Dec 2026 10:53:42 +0000
Subject: [PATCH] Add RP actions web panel with GIF upload support

---
 web/templates/captcha.html |   35 ++++++++++++++---------------------
 1 files changed, 14 insertions(+), 21 deletions(-)

diff --git a/web/templates/captcha.html b/web/templates/captcha.html
index 43cd6d2..08825f5 100644
--- a/web/templates/captcha.html
+++ b/web/templates/captcha.html
@@ -3,27 +3,20 @@
 {% block header %}Активные капчи{% endblock %}
 {% block content %}
 
-<div class="overflow-x-auto rounded-xl border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900 shadow-sm">
-    <table class="w-full min-w-[420px] text-sm">
-        <thead class="bg-gray-50 dark:bg-gray-900/60 text-gray-500 dark:text-gray-400">
-            <tr>
-                <th class="px-5 py-3 text-left font-medium">Чат</th>
-                <th class="px-5 py-3 text-left font-medium">Пользователь</th>
-                <th class="px-5 py-3 text-left font-medium">Осталось</th>
-            </tr>
-        </thead>
-        <tbody class="divide-y divide-gray-100 dark:divide-gray-800">
-            {% for r in rows %}
-            <tr>
-                <td class="px-5 py-3">{{ names.get(r.chat_id, r.chat_id) }}</td>
-                <td class="px-5 py-3">{{ r.user_id }}</td>
-                <td class="px-5 py-3 text-gray-500">{{ r.left }} с</td>
-            </tr>
-            {% else %}
-            <tr><td colspan="3" class="px-5 py-8 text-center text-gray-500">Сейчас никто не проходит капчу.</td></tr>
-            {% endfor %}
-        </tbody>
-    </table>
+<div class="grid gap-3 sm:grid-cols-2 xl:grid-cols-3">
+    {% for r in rows %}
+    <div class="rounded-xl border border-gray-200 bg-white p-4 shadow-sm dark:border-gray-800 dark:bg-gray-900">
+        <div class="flex items-center justify-between gap-2">
+            <span class="min-w-0 truncate font-semibold">{{ names.get(r.chat_id, r.chat_id) }}</span>
+            <span class="shrink-0 rounded-full bg-emerald-100 px-2 py-0.5 text-xs text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300">{{ r.left }} с</span>
+        </div>
+        <div class="mt-1 text-sm text-gray-500">Пользователь {{ r.user_id }}</div>
+    </div>
+    {% else %}
+    <div class="rounded-xl border border-gray-200 bg-white p-8 text-center text-gray-500 dark:border-gray-800 dark:bg-gray-900 sm:col-span-2 xl:col-span-3">
+        Сейчас никто не проходит капчу.
+    </div>
+    {% endfor %}
 </div>
 
 {% endblock %}

--
Gitblit v1.9.3