From fa6dbddf6936084385daf680ff9e721b663634fb Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Thu, 26 Jan 2023 17:26:42 +0200 Subject: [PATCH] Style fixes for file table --- sanic/pages/autoindex.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sanic/pages/autoindex.py b/sanic/pages/autoindex.py index df9b501f..f79b4989 100644 --- a/sanic/pages/autoindex.py +++ b/sanic/pages/autoindex.py @@ -16,9 +16,11 @@ class FileInfo(TypedDict): class AutoIndex(BasePage): EXTRA_STYLE = dedent( """ - table.autoindex td:first-child { width: 65% } + table.autoindex tr { display: flex; } + table.autoindex td { margin: 0 0.5rem; } + table.autoindex td:first-child { flex: 1; } table.autoindex td:nth-child(2) { text-align: right; } - table.autoindex td:last-child { width: 215px; text-align: right; } + table.autoindex td:last-child { text-align: right; } """ ) TITLE = "📁 File browser"