From 95ad6b92be4eaa7b18394390bcc0a121d1342a88 Mon Sep 17 00:00:00 2001 From: "Andrey V. Novikov" Date: Thu, 2 Feb 2023 15:24:24 +0300 Subject: [PATCH 1/4] fix: rendering on small (mobile) screens - Allow wrapping of long breadcrumbs line that leads to horizontal scrolling and breaks lightGallery zooming - Maximize filenames column width and shrink icons column --- apaxy/theme/style.css | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/apaxy/theme/style.css b/apaxy/theme/style.css index 96795da..d597313 100644 --- a/apaxy/theme/style.css +++ b/apaxy/theme/style.css @@ -164,7 +164,6 @@ th { } /* 2nd Column: Filename */ - th + th { width: 65%; } @@ -178,11 +177,7 @@ th + th + th + th { width: 5%; } -tr th:first-of-type { - padding-left: 10px; - padding-right: 10px; -} - +tr th:first-of-type, tr td:first-of-type { padding-left: 10px; padding-right: 10px; @@ -234,6 +229,9 @@ tr.parent a[href^="/"] { body { padding: 10px; } + /* 2nd Column: Filename */ + .indexcolname { width: 95%; } + /* 3rd Column: Last Modified */ .indexcollastmod { display: none; } .wrapper { max-width: 100%; } } @@ -320,7 +318,6 @@ tr.parent a[href^="/"] { \*------------------------------------*/ .breadcrumb { - white-space: nowrap; padding: 0; margin: 0; } @@ -332,6 +329,7 @@ tr.parent a[href^="/"] { margin: 0 9px 20px -10px; padding: 0 15px; position: relative; + white-space: nowrap; } @media (prefers-color-scheme: dark) { .breadcrumb li { From b76dc3be4aa596e6313c063d15124eb65fcdedaf Mon Sep 17 00:00:00 2001 From: "Andrey V. Novikov" Date: Thu, 2 Feb 2023 15:25:59 +0300 Subject: [PATCH 2/4] feat: HEIC files and uppercase filenames for LightGallery --- apaxy/theme/apaxy-lightgallery.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apaxy/theme/apaxy-lightgallery.js b/apaxy/theme/apaxy-lightgallery.js index 5e78dea..b4ace30 100644 --- a/apaxy/theme/apaxy-lightgallery.js +++ b/apaxy/theme/apaxy-lightgallery.js @@ -1,7 +1,12 @@ var imageSelector = [ - 'tr:not(.parent) td.indexcolname a[href$=".png"]', + 'tr:not(.parent) td.indexcolname a[href$=".gif"]' + 'tr:not(.parent) td.indexcolname a[href$=".GIF"]' + 'tr:not(.parent) td.indexcolname a[href$=".heic"]', + 'tr:not(.parent) td.indexcolname a[href$=".HEIC"]', 'tr:not(.parent) td.indexcolname a[href$=".jpg"]', - 'tr:not(.parent) td.indexcolname a[href$=".gif"]', + 'tr:not(.parent) td.indexcolname a[href$=".JPG"]', + 'tr:not(.parent) td.indexcolname a[href$=".png"]', + 'tr:not(.parent) td.indexcolname a[href$=".PNG"]', ].join(', '); lightGallery(document.getElementById('indexlist'), { From b7d7d2aeb861e2b553546d089271d80b32b8e9c3 Mon Sep 17 00:00:00 2001 From: "Andrey V. Novikov" Date: Fri, 3 Feb 2023 00:25:57 +0300 Subject: [PATCH 3/4] fix: remove useless code for fixing hrefs That fix seems to be needed to bypass an Apache bug and now became useless. --- apaxy/theme/apaxy.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/apaxy/theme/apaxy.js b/apaxy/theme/apaxy.js index f17a643..86f7fad 100644 --- a/apaxy/theme/apaxy.js +++ b/apaxy/theme/apaxy.js @@ -99,11 +99,3 @@ arr.forEach(function(value){ cont++; }); document.getElementById("breadcrumb").innerHTML = bread; -if (uri.substring(uri.length-1) != '/'){ - var indexes = document.getElementsByClassName('indexcolname'), - i = indexes.length; - while (i--){ - var a = indexes[i].getElementsByTagName('a')[0]; - a.href = uri + '/' + a.getAttribute('href',2); - } -} From 9ed650a4effc47c1696530f2f4baed130340aa86 Mon Sep 17 00:00:00 2001 From: Andrey Novikov Date: Fri, 12 May 2023 19:21:15 +0300 Subject: [PATCH 4/4] fix: update the required Apache version in README Module autoindex in Apache-2.2 generates table not specifying any CSS classes (they were appeared in Apache-2.4), but Apaxy CSS selectors requires those. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e814f88..e6233d7 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Apaxy may be basic, but it gives you a great deal of creative freedom when styli ## Installation -apaxy requires an apache (2.2.11+) http server. The configuration of the apache http server have to set an `AllowOverride` statement for the Apaxy styled folder: +apaxy requires an apache (2.4+) http server. The configuration of the apache http server have to set an `AllowOverride` statement for the Apaxy styled folder: ```apache AllowOverride Options Indexes FileInfo