From fd6f5c28af20cb6c08a2c062e330d1af54e36c87 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 21 Jun 2025 00:41:27 +0500 Subject: upd: file preview design --- public/index.php | 39 +++++++++++++++++---------------------- 1 file changed, 17 insertions(+), 22 deletions(-) (limited to 'public/index.php') diff --git a/public/index.php b/public/index.php index d09aeab..d6ad180 100644 --- a/public/index.php +++ b/public/index.php @@ -128,7 +128,8 @@ if (FILE_CATALOG_FANCY_VIEW && $file_id) { } if (isset($file['duration'])) { - array_push($file['resolution'], format_timestamp(new DateTime()->setTimestamp(time() + $file['duration']))); + $dur = format_timestamp(new DateTime()->setTimestamp(time() + $file['duration'])); + array_push($file['resolution'], empty($file['resolution']) ? $dur : "($dur)"); } if (isset($file['line_count'])) { @@ -171,26 +172,7 @@ $privacy_exists = is_file($_SERVER['DOCUMENT_ROOT'] . '/static/PRIVACY.txt'); -
- -
-
-

-

()

- -

- -
-
-

Uploaded ago

-
-
- -

views

- -
-
-
+ @@ -208,7 +190,7 @@ $privacy_exists = is_file($_SERVER['DOCUMENT_ROOT'] . '/static/PRIVACY.txt');
-
+

@@ -260,7 +242,20 @@ $privacy_exists = is_file($_SERVER['DOCUMENT_ROOT'] . '/static/PRIVACY.txt');

This file cannot be displayed.

+
+ +
+

+

()

+ +

+ +

Uploaded ago

+ +

views

+ +
-- cgit v1.2.3