From 1a235f189332c94e452925d2f28cf73e48fd8e78 Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Thu, 24 Oct 2024 00:37:25 -0400 Subject: [PATCH] Long names now overflow --- README.md | 4 ++++ fancy-pages/css/style.css | 25 ++++++++++++++++++------- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 41bc50b..9a042ba 100644 --- a/README.md +++ b/README.md @@ -36,3 +36,7 @@ with details kept largely the same. 2. Move the `fancy-pages` folder to the same folder level as your serving location. For example, if your location directive is `/mydatabase`, the theme should be located `/fancy-pages`. 3. Restart or reload nginx. + +## Options +It's possible to 'titleize' the current path, which removes underscores and capitalizes +words properly. This is disabled by default, but can be enabled in `js/script.js`. diff --git a/fancy-pages/css/style.css b/fancy-pages/css/style.css index 5494d4c..f9668cc 100644 --- a/fancy-pages/css/style.css +++ b/fancy-pages/css/style.css @@ -385,11 +385,9 @@ footer#section-footer .row { padding-bottom: 6px; } - /* reduce icon width */ - table#list tr th.indexcolicon, - table#list tr td.indexcolicon { - max-width: 35px; - width: 35px; + + table#list tr { + position: relative; } table#list thead th:nth-child(1), @@ -438,11 +436,24 @@ footer#section-footer .row { padding: 0; padding-right: 6px !important; padding-bottom: 8px !important; - margin-top: -0.4rem; + position: absolute; + top: 1.8rem; + } + + table#list tr td:nth-child(1) { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + width: 90vw; + height: 2.5rem; } table#list tr td:nth-child(2) { - margin-left: 2.2rem; + left: 2.25rem; + } + + table#list tr td:nth-child(3) { + right: 0rem; } h1 {