summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-06-23 19:35:18 +0500
committerilotterytea <iltsu@alright.party>2025-06-23 19:35:18 +0500
commitdc17e80a5ad699c27d9c61feeb5df167123afd17 (patch)
treef2bc569931c73df1eaaa98bac9447c030eabd012 /public
parent7b50348c8c0366f0ae83ffcf9a0caea9c2b0498a (diff)
fix: set width only if file has it
Diffstat (limited to 'public')
-rw-r--r--public/index.php2
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">