From f74a36af13481ae5e7dd082c78dd9ea437c7049a Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 21 Jun 2025 01:06:14 +0500 Subject: feat: mobile responsiveness --- public/catalogue.php | 3 +++ public/index.php | 3 +++ public/mod.php | 3 +++ public/report.php | 3 +++ public/static/style.css | 20 ++++++++++++++++++++ public/uploaders.php | 2 ++ 6 files changed, 34 insertions(+) (limited to 'public') diff --git a/public/catalogue.php b/public/catalogue.php index add156e..fca1183 100644 --- a/public/catalogue.php +++ b/public/catalogue.php @@ -41,8 +41,11 @@ $files = $stmt->fetchAll(); File Catalogue (Page <?= $page + 1 ?>/<?= $max_pages ?>) - <?= INSTANCE_NAME ?> + + + diff --git a/public/index.php b/public/index.php index 4b26c8a..51c0e7d 100644 --- a/public/index.php +++ b/public/index.php @@ -160,8 +160,11 @@ $privacy_exists = is_file($_SERVER['DOCUMENT_ROOT'] . '/static/PRIVACY.txt'); <?= INSTANCE_NAME ?> + + + diff --git a/public/mod.php b/public/mod.php index 728222e..a1d91b8 100644 --- a/public/mod.php +++ b/public/mod.php @@ -45,8 +45,11 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { Moderation - <?= INSTANCE_NAME ?> + + + diff --git a/public/report.php b/public/report.php index 72f49a3..9ede7b4 100644 --- a/public/report.php +++ b/public/report.php @@ -116,8 +116,11 @@ if (!is_file(FILE_UPLOAD_DIRECTORY . "/{$file_id}")) { Report - <?= INSTANCE_NAME ?> + + + diff --git a/public/static/style.css b/public/static/style.css index d11ca82..ffc7a4b 100644 --- a/public/static/style.css +++ b/public/static/style.css @@ -373,4 +373,24 @@ button[type=submit].fancy:hover { cursor: help; font-size: 10px; vertical-align: top; +} + +@media screen and (max-width: 1000px) { + main { + width: 100%; + } + + .file-preview-wrapper, + .navbar { + margin: 8px; + } + + .navbar { + align-items: start; + flex-direction: column; + } + + .grid-3 { + grid-template-columns: auto; + } } \ No newline at end of file diff --git a/public/uploaders.php b/public/uploaders.php index aa8e7f5..bd6d86e 100644 --- a/public/uploaders.php +++ b/public/uploaders.php @@ -21,9 +21,11 @@ foreach (FILE_ACCEPTED_MIME_TYPES as $k => $v) { Uploaders - <?= INSTANCE_NAME ?> + + -- cgit v1.2.3