From db0a3bb4d61228633bba4ee07d3302806376d10b Mon Sep 17 00:00:00 2001 From: mguschin Date: Wed, 13 May 2026 21:09:32 +0300 Subject: [PATCH] fix: table compresses to page width with fixed layout and ellipsis overflow Co-Authored-By: Claude Sonnet 4.6 --- web/static/style.css | 10 ++++++++++ web/templates/admin/users.html | 17 ++++++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/web/static/style.css b/web/static/style.css index b5f8557..a84bb42 100644 --- a/web/static/style.css +++ b/web/static/style.css @@ -322,11 +322,21 @@ article.card { table.align-middle { width: 100%; + table-layout: fixed; } table.align-middle td, table.align-middle th { vertical-align: middle; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +table.align-middle td.wrap, +table.align-middle th.wrap { + white-space: normal; + word-break: break-all; } /* Breadcrumb */ diff --git a/web/templates/admin/users.html b/web/templates/admin/users.html index c6a2f2b..5f285a5 100644 --- a/web/templates/admin/users.html +++ b/web/templates/admin/users.html @@ -89,6 +89,17 @@
+ + + + + + + + + + + @@ -98,7 +109,7 @@ - + @@ -107,13 +118,13 @@ - - +
IDРоль Статус ЭвоторРегистрацияДата
{{ u.id }} {{ u.first_name }} {{ u.last_name }} + {{ u.email }} {% if not u.is_email_confirmed %} {% endif %} {{ u.phone }}{{ u.phone or '—' }} {% if u.role == 'system' %}Системный {% elif u.role == 'admin' %}Админ