Revert "Fix Small Image Preview Sizing."

This reverts commit e4761782e0.

This caused performance problems and jolting of the main UI, because
it broke the important invariant that the height of a Zulip message
should not depend on the content of slow-to-load assets such as
images.
This commit is contained in:
Tim Abbott 2017-01-06 17:14:08 -08:00
parent 0f50ef12f5
commit 89b47bb653

View File

@ -1825,16 +1825,11 @@ div.floating_recipient {
.message_inline_image {
margin-bottom: 5px;
margin-left: 5px;
max-height: 100px;
height: 100px;
display: block !important;
border: none !important;
}
/* this forces the line to have inline-block styling which gives it a height. */
.message_inline_image a {
display: inline-block;
}
.message_inline_ref {
margin-bottom: 5px;
margin-left: 5px;
@ -1847,7 +1842,7 @@ div.floating_recipient {
.message_inline_image img,
.message_inline_ref img {
height: auto;
max-height: 100px;
max-height: 100%;
float: left;
margin-right: 10px;
}