Skip to content

Add embed-gist-via-iframe feature - #2347

Merged
fregante merged 9 commits into
refined-github:masterfrom
kidonng:gist-embed-iframe
Sep 16, 2019
Merged

fregante merged 9 commits into
refined-github:masterfrom
kidonng:gist-embed-iframe

Conversation

@kidonng

@kidonng kidonng commented Aug 17, 2019 •

Copy link
Copy Markdown
Member

Before:
1

After:
image

GitHub has a listener for the menu items so we just need to copy an existing item to make it work.

The description change is to distinguish the two embed items and is also consistent with the existing "Clone via HTTPS" and "Clone via SSH" items.

Test

https://gist.github.com/KomaliVuddanti/f062a78b4fff3ee001529efe2a468375

@sindresorhus

Copy link
Copy Markdown
Member

My code isn't too elegant so I'll be all ears

If you have to write this, you should probably put some work into it ;)

@sindresorhus sindresorhus changed the title feat: add embed-gist-via-iframe Add embed-gist-via-iframe feature Aug 17, 2019
@kidonng

kidonng commented Aug 17, 2019

Copy link
Copy Markdown
Member Author

@jerone How does it look now :)

@kidonng

kidonng commented Aug 17, 2019

Copy link
Copy Markdown
Member Author

If you have to write this, you should probably put some work into it ;)

Oh sorry I should have taken it seriously 😋

@sindresorhus

Copy link
Copy Markdown
Member

Also don't forget to send the feature request to GitHub: [email protected] It feels like something that should be available natively.

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Untested but LGTM

@fregante

Copy link
Copy Markdown
Member

I'm seeing this really weird behavior in Firefox. The buttons are swapped and incorrect.

I'm about to push a change that sorts the code and fixes the script label, but the result is similar.

It works correctly in Chrome though.

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Needs fixing before merge 😅

@fregante
fregante merged commit 374c807 into refined-github:master Sep 16, 2019
@fregante fregante mentioned this pull request Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants