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

Max width on anchor preview #586

Merged
merged 1 commit into from
Apr 30, 2015
Merged

Max width on anchor preview #586

merged 1 commit into from
Apr 30, 2015

Conversation

j0k3r
Copy link
Contributor

@j0k3r j0k3r commented Apr 30, 2015

Few littles fixes:

  1. avoid too large preview
  2. fix bad positionning of the preview

Link too large

This avoid the preview to be larger than the screen on very large link (like Medium does).
Here is before that PR with a large link:

And after, with the same link:


Bad position

I got some problem when the anchor is positionned. The fixed value of buttonHeight was the problem. Using offset of the current position of the anchor fixed the issue.

Preview before:

medium_anchor_before

preview after:
medium_anchor_after

This avoid the preview to be larger than the screen on very large link
@coveralls
Copy link

Coverage Status

Coverage remained the same at 93.89% when pulling a5e7b6d on j0k3r:anchor-preview-width into 99b46b0 on daviferreira:master.

daviferreira added a commit that referenced this pull request Apr 30, 2015
@daviferreira daviferreira merged commit c54f388 into yabwe:master Apr 30, 2015
@j0k3r j0k3r deleted the anchor-preview-width branch May 1, 2015 04:13
nysk pushed a commit to nysk/medium-editor that referenced this pull request Aug 10, 2015
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.

3 participants