From 9e95d2e4ac0d548267a7086b4378ba8a23a1bc2a Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Thu, 24 Mar 2016 00:12:54 +0000 Subject: [PATCH] make image event bodies display as blocks to avoid auto sizing, so we can measure their width to explicitly set their height --- .../vector/css/matrix-react-sdk/views/messages/MImageBody.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/skins/vector/css/matrix-react-sdk/views/messages/MImageBody.css b/src/skins/vector/css/matrix-react-sdk/views/messages/MImageBody.css index 8af3701e..acbefbad 100644 --- a/src/skins/vector/css/matrix-react-sdk/views/messages/MImageBody.css +++ b/src/skins/vector/css/matrix-react-sdk/views/messages/MImageBody.css @@ -14,6 +14,10 @@ See the License for the specific language governing permissions and limitations under the License. */ +.mx_MImageBody { + display: block; +} + .mx_MImageBody_thumbnail { max-width: 100%; /*