Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Amends react template and removes opening image in lightbox #343

Merged
merged 1 commit into from
Jul 15, 2016
Merged

Amends react template and removes opening image in lightbox #343

merged 1 commit into from
Jul 15, 2016

Conversation

stefanpearson
Copy link

Style amends in element-hq/element-web#1799

Signed-off-by: Stefan Pearson stefan@ribot.co.uk

@matrixbot
Copy link
Member

Can one of the admins verify this patch?

render: function() {
var p = this.state.preview;
if (!p) return <div/>;

// FIXME: do we want to factor out all image displaying between this and MImageBody - especially for lightboxing?
var image = p["og:image"];
var imageMaxWidth = 100, imageMaxHeight = 100;
var imageMaxWidth = 600, imageMaxHeight = 400;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels strange to me, I wouldn't fix any dimensions. Is this to keep the scroll position behaving?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it is. this would force all previews to be 400px huge i think? unless you changed the css for this, in which case it will probably break scroll pos. will test

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

going to merge this and see what breaks.

@ara4n
Copy link
Member

ara4n commented Jul 15, 2016

lgtm other than q's

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants