Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(components/media_modal): Aspect ratio #4128

Merged
merged 2 commits into from
Jul 9, 2017
Merged

fix(components/media_modal): Aspect ratio #4128

merged 2 commits into from
Jul 9, 2017

Conversation

sorin-davidoi
Copy link
Contributor

A bit over my head with the CSS here. This should fix the issues mentioned by @unarist in #2889.

@@ -1281,6 +1281,10 @@
}
}

.media-modal .react-swipeable-view-container {
align-items: center;
Copy link
Contributor

@unarist unarist Jul 9, 2017

Choose a reason for hiding this comment

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

Is not this line superseded by animateHeight option?

(btw, I like align-items: center way since height animation doesn't look good for me, at least for now)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, but it's superseded by opacity: 0 (did not know how else to position the canvas behind the image).

@unarist
Copy link
Contributor

unarist commented Jul 9, 2017

I'm worried about vertical moving on switching between different aspect ratios, but I don't have ideas yet...

GIF

test

@Gargron
Copy link
Member

Gargron commented Jul 9, 2017

@unarist That gif looks pretty cool to me? Except that it seems a part of the old image is visible on the very left?

@sorin-davidoi
Copy link
Contributor Author

sorin-davidoi commented Jul 9, 2017

@unarist We could just use the old package (react-swipeable) if this is not acceptable, it's small enough.

@unarist
Copy link
Contributor

unarist commented Jul 9, 2017

Maybe no one cares about it except me :)

@Gargron Gargron merged commit 4122a83 into mastodon:master Jul 9, 2017
rtucker pushed a commit to vulpineclub/mastodon that referenced this pull request Jul 10, 2017
* fix(components/media_modal): Aspect ratio

* fix: Remove useless style
rtucker pushed a commit to vulpineclub/mastodon that referenced this pull request Jul 10, 2017
* fix(components/media_modal): Aspect ratio

* fix: Remove useless style
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants