Преглед на файлове

fix: #2701 Fix look of authors (#2771)

This fix makes the authors part of the "title item", so it's not
considered as another block. This is not perfect since authors will
disappear on small screens, but we can discuss of putting titles on
multi-lines (see https://github.com/FreshRSS/FreshRSS/issues/2344)
Marien Fressinaud преди 6 години
родител
ревизия
8eabc068c9
променени са 2 файла, в които са добавени 7 реда и са изтрити 7 реда
  1. 4 4
      app/views/helpers/index/normal/entry_header.phtml
  2. 3 3
      p/themes/base-theme/template.css

+ 4 - 4
app/views/helpers/index/normal/entry_header.phtml

@@ -28,9 +28,9 @@
 		}
 	}
 	?><li class="item website"><a href="<?= _url('index', 'index', 'get', 'f_' . $this->feed->id()) ?>"><img class="favicon" src="<?= $this->feed->favicon() ?>" alt="✇" /> <span><?= $this->feed->name() ?></span></a></li>
-	<li class="item title" dir="auto"><a target="_blank" rel="noreferrer" href="<?= $this->entry->link() ?>"><?= $this->entry->title() ?></a><?php
+	<li class="item title" dir="auto"><a target="_blank" rel="noreferrer" href="<?= $this->entry->link() ?>"><?= $this->entry->title() ?><?php
 		if ($topline_display_authors):
-			?><div class="item author"><?php
+			?><span class="author"><?php
 			$authors = $this->entry->authors();
 			if (is_array($authors)) {
 				$first = true;
@@ -39,9 +39,9 @@
 					$first = false;
 				}
 			}
-			?></div><?php
+			?></span><?php
 		endif;
-	?></li>
+	?></a></li>
 	<?php if ($topline_date) { ?><li class="item date"><?= $this->entry->date() ?> </li><?php } ?>
 	<?php if ($topline_link) { ?><li class="item link"><a target="_blank" rel="noreferrer" href="<?= $this->entry->link() ?>"><?= _i('link') ?></a></li><?php } ?>
 </ul>

+ 3 - 3
p/themes/base-theme/template.css

@@ -667,11 +667,11 @@ a.btn {
 	text-decoration: none;
 }
 
-.flux .item.author {
+.flux .item.title .author {
+	padding-left: 1rem;
 	color: #555;
-	font-size: .7rem;
+	font-size: .9rem;
 	font-weight: normal;
-	white-space: normal;
 }
 
 .flux .item.date {