diff options
| author | 2024-04-25 08:45:59 +0200 | |
|---|---|---|
| committer | 2024-04-25 08:45:59 +0200 | |
| commit | aac3b21a8b4fd1a2f351a63fdb70d39ac2851921 (patch) | |
| tree | cc87dac0240cbd64da786136b399eca0af920042 /app | |
| parent | 7b922668551f5dcf99a79c474a09103e78e4c703 (diff) | |
Fix: overflow expanding title in entry header (#6373)
* change HTML structure
* CSS
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/helpers/index/normal/entry_header.phtml | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/app/views/helpers/index/normal/entry_header.phtml b/app/views/helpers/index/normal/entry_header.phtml index f550dfa21..ebac7f46b 100644 --- a/app/views/helpers/index/normal/entry_header.phtml +++ b/app/views/helpers/index/normal/entry_header.phtml @@ -51,8 +51,8 @@ endif; ?></li><?php endif; ?> - - <li class="item title<?= (($topline_thumbnail !== 'none') || $topline_summary) ? ' multiline' : '' ?>" dir="auto"><a target="_blank" rel="noreferrer" href="<?= $this->entry->link() ?>" class="item-element"><?= $this->entry->title() ?><?php + <li class="item titleAuthorSummaryDate"> + <span class="item-element title<?= (($topline_thumbnail !== 'none') || $topline_summary) ? ' multiline' : '' ?>" dir="auto"><a target="_blank" rel="noreferrer" href="<?= $this->entry->link() ?>"><?= $this->entry->title() ?><?php if ($topline_display_authors): ?><span class="author"><?php $authors = $this->entry->authors(); @@ -65,11 +65,13 @@ } ?></span><?php endif; - if ($topline_summary): - ?><div class="summary"><?= trim(mb_substr(strip_tags($this->entry->content(false)), 0, 500, 'UTF-8')) ?></div><?php - endif; - ?></a></li> - <?php if ($topline_date) { ?><li class="item date"><time datetime="<?= $this->entry->machineReadableDate() ?>" class="item-element"><?= $this->entry->date() ?></time> </li><?php } ?> + ?></a></span> + <?php + if ($topline_summary): + ?><div class="summary"><?= trim(mb_substr(strip_tags($this->entry->content(false)), 0, 500, 'UTF-8')) ?></div><?php + endif; ?> + <?php if ($topline_date) { ?><span class="item-element date"><time datetime="<?= $this->entry->machineReadableDate() ?>"><?= $this->entry->date() ?></time> </span><?php } ?> + </li> <?php if ($topline_link) { ?><li class="item link"><a target="_blank" rel="noreferrer" href="<?= $this->entry->link() ?>" class="item-element" title="<?= _t('conf.shortcut.see_on_website') ?>"><?= _i('link') ?></a></li><?php } ?> </ul> |
