lus / pasty

pasty is a fast and lightweight code pasting server
https://pasty.lus.pm
MIT License
200 stars 27 forks source link

Add Embed Mode #23

Closed zekroTJA closed 2 years ago

zekroTJA commented 2 years ago

I have implemented an embed mode which automatically engages when the web app detects to be inside an iframe.

This is a slightly different approach than mentioned in #21, because I think this is more responsive and convenient for the users to just use the same link for their embeds as they see in their browsers.

This is how the result looks like. image

[This merge request fixes #21.]

zekroTJA commented 2 years ago

*needed to amend the commit again because I accidentally committed vsc configs c:

voxain commented 2 years ago

e m b e d e d

zekroTJA commented 2 years ago

Okay, formatting fed everything again. I think this PR is my enemy. Ill fix this real quick.

zekroTJA commented 2 years ago

Now it should be fixed. ^^