-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Possible improvements for the "embed linked gists" feature #870
Comments
In the Signal Desktop repository we frequently link to thousand-line gists, and they really don't work inline. I'd really appreciate a max lines limit for embedded files. For example: signalapp/Signal-Desktop#1884 (I've turned off Refined GitHub until something happens here) |
@scottnonnenberg I agree. What do you think would be a sensible line limit? |
Or should we just make it scrollable with a max height container? |
This |
What I want to avoid is completely losing the context of the discussion. A limit of something like half the height of the current viewport would help ensure that. |
Like GitHub already does with permalink embeds, they should be limited to 12 lines via The other problem is when they are multiple files.
|
@scottnonnenberg this pr ⬆️ should let you re-enable Refined GitHub until a comprehensive solution is devised. |
I think we should just avoid embedding if there are multiple files. The embedding feature is intended for simple gists. |
Should we then show this info by the link? Otherwise one might think that the embed didn't work. |
Can't we just document in the readme that it only applies to single-file gists? |
Sure, but since we still have to load the gist and count the files we might as well attach some info, e.g. https://gist.github.com/staltz/868e7e9bc2a7b8c1f754 (2 files) |
Yeah, showing the file count could be useful. |
#820 (comment)
The text was updated successfully, but these errors were encountered: