Opted for CSS-Based Functionality Instead of JS

This commit is contained in:
Joshua Myers 2024-03-01 12:26:58 -06:00 committed by GitHub
parent 0f7d1b1378
commit 57579e379e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1703,7 +1703,7 @@ if (isset($_GET['view'])) {
<p class="break-word"><b><?php echo lng($view_title) ?> "<?php echo fm_enc(fm_convert_win($file)) ?>"</b></p>
<p class="break-word">
<?php $display_path = fm_get_display_path($file_path); ?>
<strong><?php echo $display_path['label']; ?>:</strong> <span onclick="if(window.getSelection) { var selection = window.getSelection(); var range = document.createRange(); range.selectNodeContents(this); selection.removeAllRanges(); selection.addRange(range); }"><?php echo $display_path['path']; ?></span><br>
<strong><?php echo $display_path['label']; ?>:</strong> <span style="user-select:all;"><?php echo $display_path['path']; ?></span><br>
<strong>File size:</strong> <?php echo ($filesize_raw <= 1000) ? "$filesize_raw bytes" : $filesize; ?><br>
<strong>MIME-type:</strong> <?php echo $mime_type ?><br>
<?php