From ae462e3afaf0ed98a37c4a136cd0f81ee9e6de93 Mon Sep 17 00:00:00 2001 From: berkio_admin_gitea Date: Tue, 7 Jul 2026 12:50:59 +0000 Subject: [PATCH] =?UTF-8?q?=D0=90=D0=B4=D0=BC=D0=B8=D0=BD=D0=BA=D0=B0:=20?= =?UTF-8?q?=D0=BE=D0=B1=D1=80=D0=B5=D0=B7=D0=BA=D0=B0=20=D0=B4=D0=BB=D0=B8?= =?UTF-8?q?=D0=BD=D0=BD=D1=8B=D1=85=20=D0=B8=D0=BC=D1=91=D0=BD=20=D1=84?= =?UTF-8?q?=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2=20=D0=B2=20=D1=82=D0=B0=D0=B1?= =?UTF-8?q?=D0=BB=D0=B8=D1=86=D0=B5=20=D0=B4=D0=BE=D0=BA=D1=83=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D1=82=D0=BE=D0=B2=20(=D0=BD=D0=B5=20=D1=80=D0=B0=D1=81?= =?UTF-8?q?=D1=82=D1=8F=D0=B3=D0=B8=D0=B2=D0=B0=D1=82=D1=8C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Длинные имена с white-space:nowrap растягивали таблицу шире экрана и левые колонки уезжали за край. Колонка «Файл» теперь max-width 300px + ellipsis, полное имя — в title (подсказка) и в CSV-экспорте. Co-Authored-By: Claude Opus 4.8 --- app/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 4aa7686..6d94b2d 100644 --- a/app/main.py +++ b/app/main.py @@ -2671,6 +2671,7 @@ _ADMIN_HTML = """ th{ color:var(--sec); font-weight:500; font-size:12px; } tr:last-child td{ border-bottom:none; } .num{ text-align:right; font-variant-numeric:tabular-nums; } + .fname{ max-width:300px; overflow:hidden; text-overflow:ellipsis; } .pill{ display:inline-block; padding:2px 8px; border-radius:20px; font-size:12px; } .pill.ok{ background:rgba(52,199,89,.15); color:#1f9d3f; } .pill.pend{ background:rgba(142,142,147,.15); color:#6b6b70; } @@ -2813,7 +2814,7 @@ _ADMIN_HTML = """ var web = (f.user_id === wid); var srcPill = web ? 'сайт' : 'бот'; var dd = (f.date||'') + (f.time ? ' '+String(f.time).slice(0,5) : ''); - return ''+esc(dd)+''+esc(f.name)+''+(f.pages||'—')+ + return ''+esc(dd)+''+esc(f.name)+''+(f.pages||'—')+ ''+size(f.source_size_mb)+''+size(f.result_size_mb)+ ''+esc(f.quality||'—')+''+(f.ocr?'✓':'')+''+srcPill+''; }).join('') : 'Пока нет документов';