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);
},
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;\
pointer-events: none;\
}\
img[md5], img + img {\
[md5], [md5] + img {\
pointer-events: all;\
}\
.fitwidth img + img {\
.fitwidth [md5] + img {\
max-width: 100%;\
width: -moz-calc(100%); /* hack so only firefox sees this */\
}\

View File

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

View File

@ -2229,7 +2229,7 @@ imgExpand =
$.prepend form, controls
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 =
init: ->
@ -2463,10 +2463,10 @@ Main =
float: left;
pointer-events: none;
}
img[md5], img + img {
[md5], [md5] + img {
pointer-events: all;
}
.fitwidth img + img {
.fitwidth [md5] + img {
max-width: 100%;
width: -moz-calc(100%); /* hack so only firefox sees this */
}