فهرست منبع

Amélioration affichage grosses images

Marien Fressinaud 13 سال پیش
والد
کامیت
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%;