Просмотр исходного кода

correction petit bug entryController + petites améliorations design

Marien Fressinaud 13 лет назад
Родитель
Сommit
80d4f5cf3d
3 измененных файлов с 10 добавлено и 3 удалено
  1. 1 0
      app/controllers/entryController.php
  2. 1 1
      app/views/index/index.phtml
  3. 8 2
      public/theme/base.css

+ 1 - 0
app/controllers/entryController.php

@@ -9,6 +9,7 @@ class entryController extends ActionController {
 			);
 		}
 
+		$this->params = array ();
 		$this->redirect = false;
 		$ajax = Request::param ('ajax');
 		if ($ajax) {

+ 1 - 1
app/views/index/index.phtml

@@ -50,7 +50,7 @@ if (isset ($this->entryPaginator)) {
 			</li>
 			<?php } ?>
 			<?php $feed = $item->feed (true); ?>
-			<li class="item website"><a target="_blank" href="<?php echo $feed->website (); ?>"><img class="favicon" src="http://g.etfv.co/<?php echo $feed->website (); ?>" alt="favicon <?php echo $feed->name (); ?>" /> <?php echo $feed->name (); ?></a></li>
+			<li class="item website"><a target="_blank" href="<?php echo $feed->website (); ?>"><img class="favicon" src="http://g.etfv.co/<?php echo $feed->website (); ?>" alt="favicon <?php echo $feed->name (); ?>" /> <span><?php echo $feed->name (); ?></span></a></li>
 			<li class="item title"><h1><?php echo $item->title (); ?></h1></li>
 			<li class="item date">le <?php echo $item->date (); ?></li>
 			<li class="item link"><a target="_blank" href="<?php echo $item->link (); ?>">&nbsp;</a></li>

+ 8 - 2
public/theme/base.css

@@ -698,11 +698,16 @@ input, select, textarea {
 				}
 			.flux_header .item.website {
 				width: 200px;
-				padding: 0 5px;
 				overflow: hidden;
 				white-space: nowrap;
 				text-overflow: ellipsis;
+				line-height: 35px;
 			}
+				.flux_header .item.website a {
+					display: block;
+					padding: 0 5px;
+					height: 35px;
+				}
 			.flux_header .item.title {
 				overflow: hidden;
 				white-space: nowrap;
@@ -854,7 +859,8 @@ input, select, textarea {
 		display: none;
 	}
 	.flux_header .item.website {
-		width: 20px;
+		width: 30px;
+		text-align: center;
 	}
 	.pagination .pager-previous, .pagination .pager-next {
 		width: 100px;