Browse Source

Merge pull request #2 from Sorunome/patch-2

Updating width
Nathaniel van Diepen 9 years ago
parent
commit
f61708752a
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();
 	}