diff options
| author | ilotterytea <iltsu@alright.party> | 2025-06-23 19:35:18 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-06-23 19:35:18 +0500 |
| commit | dc17e80a5ad699c27d9c61feeb5df167123afd17 (patch) | |
| tree | f2bc569931c73df1eaaa98bac9447c030eabd012 | |
| parent | 7b50348c8c0366f0ae83ffcf9a0caea9c2b0498a (diff) | |
fix: set width only if file has it
| -rw-r--r-- | public/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php index ea4bde7..5ba89a9 100644 --- a/public/index.php +++ b/public/index.php @@ -192,7 +192,7 @@ $privacy_exists = is_file($_SERVER['DOCUMENT_ROOT'] . '/static/PRIVACY.txt'); <?php if ($file_exists): ?> <div class="row grow justify-center"> - <section class="file-preview-wrapper" style="max-width:<?= max($file['width'], 256) ?>px;"> + <section class="file-preview-wrapper" <?= isset($file['width']) ? ('style="max-width:' . max($file['width'], 256) . 'px;"') : '' ?>> <section class="box"> <div class="tab row wrap gap-8"> <div class="grow"> |
