Browse Source

Updating width

We were missing a margin (the medium/dark-gray border around the post container)
Sorunome 9 years ago
parent
commit
9acb4a502a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/theme.js

+ 2 - 2
scripts/theme.js

@@ -94,8 +94,8 @@ $(function(){
 	if($('.poster').length > 0){
 		var $sheet = $('<style>').appendTo('head');
 		$(window).resize(function(){
-			// 90% - 40px - 15em(of .poster)
-			var w = parseFloat($(window).width())*0.9-40-(15*Number(getComputedStyle($('.poster')[0], "").fontSize.match(/(\d*(\.\d*)?)px/)[1]));
+			// 90% - 88px - 15em(of .poster)
+			var w = parseFloat($(window).width())*0.9-88-(15*Number(getComputedStyle($('.poster')[0], "").fontSize.match(/(\d*(\.\d*)?)px/)[1]));
 			$sheet.html('img.bbc_img{max-width:'+w+'px;}');
 		}).resize();
 	}