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

Amélioration affichage grosses images

Marien Fressinaud 13 лет назад
Родитель
Сommit
cb3c97b811
2 измененных файлов с 2 добавлено и 5 удалено
  1. 1 1
      app/views/javascript/main.phtml
  2. 1 4
      public/theme/freshrss.css

+ 1 - 1
app/views/javascript/main.phtml

@@ -110,7 +110,7 @@ function mark_favorite (active) {
 
 function init_img () {
 	$(".flux .content img").each (function () {
-		if ($(this).width () > ($("#stream").width()) / 2) {
+		if ($(this).width () > ($("#stream .content").width()) / 2) {
 			$(this).addClass("big");
 		}
 	});

+ 1 - 4
public/theme/freshrss.css

@@ -305,10 +305,7 @@
 	}
 	.content img.big {
 		display: block;
-		margin: 10px 0;
-		width: 100%;
-		box-shadow: 0 0 5px #000;
-		border-radius: 5px;
+		margin: 10px auto;
 	}
 	.content pre {
 		width: 90%;