aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar maTh <1645099+math-GH@users.noreply.github.com> 2025-11-08 22:53:28 +0100
committerGravatar GitHub <noreply@github.com> 2025-11-08 22:53:28 +0100
commite3fedceeb93711282dd767e075e523df47e1f23b (patch)
tree0518af417fab70ab1c3afa179f377dd79292ffb0 /app/views
parent8cb2158a390088738eaa27ed3b01d784c35d9f9d (diff)
less margin - wrapper div deleted (#8196)
Follow up https://github.com/FreshRSS/FreshRSS/pull/8190 and https://github.com/FreshRSS/FreshRSS/pull/8152 before: <img width="1090" height="449" alt="grafik" src="https://github.com/user-attachments/assets/ee6a54a2-3602-4f2c-8eb2-cb186287e245" /> After: <img width="907" height="452" alt="grafik" src="https://github.com/user-attachments/assets/3a3066e5-90e1-4b65-a1c4-18964494f644" />
Diffstat (limited to 'app/views')
-rw-r--r--app/views/configure/display.phtml82
1 files changed, 40 insertions, 42 deletions
diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml
index 251b5c585..6f8e3e1b4 100644
--- a/app/views/configure/display.phtml
+++ b/app/views/configure/display.phtml
@@ -49,52 +49,50 @@
<?php endforeach ?>
</select>
- <div class="theme-preview-list-wrapper">
- <ul class="theme-preview-list">
- <?php $slides = count($this->themes); $i = 1; $themeAvailable = false; ?>
+ <ul class="theme-preview-list">
+ <?php $slides = count($this->themes); $i = 1; $themeAvailable = false; ?>
+ <?php
+ foreach ($this->themes as $theme) { ?>
<?php
- foreach ($this->themes as $theme) { ?>
- <?php
- $isCurrent = FreshRSS_Context::userConf()->theme === $theme['id'];
- if ($isCurrent) {
- $themeAvailable = true;
- }
- ?>
- <li class="preview-container<?= $isCurrent ? ' picked' : '' ?>" data-theme-preview="<?= $theme['id'] ?>">
- <div class="preview">
- <img src="<?= Minz_Url::display('/themes/' . $theme['id'] . '/thumbs/original.png') ?>" loading="lazy" />
- </div>
- <div class="properties">
- <div>
- <?php if (!empty($theme['deprecated'])) { ?>
- <span class="deprecated error"><?= _t('conf.display.theme.deprecated') ?>:</span>
- <?php } ?>
- <?= sprintf('%s — %s %s', $theme['name'], _t('gen.short.by_author'), $theme['author']) ?>
- </div>
- <div>
- <?php if (!empty($theme['deprecated'])) { ?>
- <span class="deprecated"><?= _t('conf.display.theme.deprecated.description') ?></span><br />
- <?php } ?>
- <?= $theme['description'] ?>
- </div>
- <?php if (!empty($theme['theme-color']['dark'])) { ?>
- <div class="darkMode">✔ <?= _t('conf.display.darkMode') ?></div>
+ $isCurrent = FreshRSS_Context::userConf()->theme === $theme['id'];
+ if ($isCurrent) {
+ $themeAvailable = true;
+ }
+ ?>
+ <li class="preview-container<?= $isCurrent ? ' picked' : '' ?>" data-theme-preview="<?= $theme['id'] ?>">
+ <div class="preview">
+ <img src="<?= Minz_Url::display('/themes/' . $theme['id'] . '/thumbs/original.png') ?>" loading="lazy" />
+ </div>
+ <div class="properties">
+ <div>
+ <?php if (!empty($theme['deprecated'])) { ?>
+ <span class="deprecated error"><?= _t('conf.display.theme.deprecated') ?>:</span>
<?php } ?>
+ <?= sprintf('%s — %s %s', $theme['name'], _t('gen.short.by_author'), $theme['author']) ?>
</div>
- </li>
- <?php $i++ ?>
- <?php } ?>
- <?php if (!$themeAvailable) {?>
- <li class="preview-container picked">
- <div class="preview">
- </div>
- <div class="properties alert-error">
- <div><?= _t('conf.display.theme_not_available', FreshRSS_Context::userConf()->theme)?></div>
+ <div>
+ <?php if (!empty($theme['deprecated'])) { ?>
+ <span class="deprecated"><?= _t('conf.display.theme.deprecated.description') ?></span><br />
+ <?php } ?>
+ <?= $theme['description'] ?>
</div>
- </li>
- <?php }?>
- </ul>
- </div>
+ <?php if (!empty($theme['theme-color']['dark'])) { ?>
+ <div class="darkMode">✔ <?= _t('conf.display.darkMode') ?></div>
+ <?php } ?>
+ </div>
+ </li>
+ <?php $i++ ?>
+ <?php } ?>
+ <?php if (!$themeAvailable) {?>
+ <li class="preview-container picked">
+ <div class="preview">
+ </div>
+ <div class="properties alert-error">
+ <div><?= _t('conf.display.theme_not_available', FreshRSS_Context::userConf()->theme)?></div>
+ </div>
+ </li>
+ <?php }?>
+ </ul>
</div>
</div>