-
Notifications
You must be signed in to change notification settings - Fork 6
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
Code blocks are being created with a fixed height #3
Comments
I don't think this has anything to do with the extension itself, the dispayed code is handled directly by Medium. Don't you get the same when pasting directly a gist URL created without the extension (with "add an embed" button)? |
Yes, I tried with a new gist created without the extension, disabled the extension completely and added the gist in a new article. It still shows the bug, so it must be a Medium issue. By the way, the problem is only visible in the editor itself. For example viewing the draft link shows the full gist. |
It would be nice if the extension would be able to fix this issue. Basically the problem seems to be that Medium doesn't know the iframe height and thus just uses a fixed height. In the other end, in the draft / published link uses the correct height, probably Medium calculates it when creating the link. |
oh! |
I've just published version 0.4.0 to chrome & firefox extension stores. It detects the code block real height and sets it accordingly so that there are no extra padding and the content is displayed fully. It is possible that Medium will fix the bug themselves in the future, in this case we can just remove this feature if needed. |
@Maluen amazing! What's interesting is that this wasn't an issue with Medium until only a few months ago. It was working fine, then they broke it, and never bothered to fix it. |
It seems that every code block is being created with a fixed height. Small blocks get extra padding at the bottom:
and large blocks get cut:
The text was updated successfully, but these errors were encountered: