diff --git a/webui/app.py b/webui/app.py index 4bcf266..1c37353 100644 --- a/webui/app.py +++ b/webui/app.py @@ -395,7 +395,9 @@ def tasks_reload(request: Request, _: AuthDep): btn = '' html = f'''
✅ Текущие задачи {active}
-{items_html}{btn}
''' +{items_html} + +''' return HTMLResponse(html) diff --git a/webui/static/css/app.css b/webui/static/css/app.css index 18da086..53ac7ed 100644 --- a/webui/static/css/app.css +++ b/webui/static/css/app.css @@ -182,6 +182,8 @@ body.f3 .c3{flex:1} .card .cbody{flex:1;overflow-y:auto;padding:4px 0} .card .cbody::-webkit-scrollbar{width:5px} .card .cbody::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px} +.add-task{background:none;border:1px dashed var(--fg3);color:var(--fg2);cursor:pointer;font-size:12px;padding:6px 14px;border-radius:6px;margin:6px 10px;width:calc(100% - 20px);display:block} +.add-task:hover{border-color:var(--accent);color:var(--fg)} .tk{display:flex;gap:8px;padding:8px 14px;border-bottom:1px solid var(--border); cursor:pointer;align-items:flex-start} diff --git a/webui/templates/index.html b/webui/templates/index.html index 921a74a..f65729e 100644 --- a/webui/templates/index.html +++ b/webui/templates/index.html @@ -56,21 +56,9 @@
-
-
✅ Текущие задачи {{ tasks|selectattr('completed','false')|list|length }}
-
- {% for t in tasks %} -
- -
-
{{ t.summary }}
- {% if t.due %}
срок {{ t.due }}
{% endif %} -
-
- {% else %} -
Задач нет или Radicale недоступен
- {% endfor %} -
+
+
✅ Текущие задачи 0
+
Загрузка...