Fix locked threads icons with fit screen/width.

This commit is contained in:
Nicolas Stepien 2011-11-27 20:36:56 +01:00
parent b7117afaeb
commit e21df3bb60
3 changed files with 8 additions and 6 deletions

View File

@ -2906,7 +2906,7 @@
return $.prepend(form, controls); return $.prepend(form, controls);
}, },
resize: function() { resize: function() {
return imgExpand.style.innerHTML = ".fitheight img + img {max-height:" + d.body.clientHeight + "px;}"; return imgExpand.style.innerHTML = ".fitheight [md5] + img {max-height:" + d.body.clientHeight + "px;}";
} }
}; };
@ -3098,10 +3098,10 @@
float: left;\ float: left;\
pointer-events: none;\ pointer-events: none;\
}\ }\
img[md5], img + img {\ [md5], [md5] + img {\
pointer-events: all;\ pointer-events: all;\
}\ }\
.fitwidth img + img {\ .fitwidth [md5] + img {\
max-width: 100%;\ max-width: 100%;\
width: -moz-calc(100%); /* hack so only firefox sees this */\ width: -moz-calc(100%); /* hack so only firefox sees this */\
}\ }\

View File

@ -1,4 +1,6 @@
master master
- mayhem
fix locked thread icons with fit width/screen enabled on Firefox
2.21.2 2.21.2
- mayhem - mayhem

View File

@ -2229,7 +2229,7 @@ imgExpand =
$.prepend form, controls $.prepend form, controls
resize: -> resize: ->
imgExpand.style.innerHTML = ".fitheight img + img {max-height:#{d.body.clientHeight}px;}" imgExpand.style.innerHTML = ".fitheight [md5] + img {max-height:#{d.body.clientHeight}px;}"
Main = Main =
init: -> init: ->
@ -2463,10 +2463,10 @@ Main =
float: left; float: left;
pointer-events: none; pointer-events: none;
} }
img[md5], img + img { [md5], [md5] + img {
pointer-events: all; pointer-events: all;
} }
.fitwidth img + img { .fitwidth [md5] + img {
max-width: 100%; max-width: 100%;
width: -moz-calc(100%); /* hack so only firefox sees this */ width: -moz-calc(100%); /* hack so only firefox sees this */
} }