-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Change design of embed modal in web UI #31801
Conversation
e6c6f26
to
dbbc7c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks ok overall, but I would leave out the CSP changes for now. Having every page include hashes for a seldom-used feature doesn't sit right with me, although right now I can't really think of a better solution.
dbbc7c0
to
4efc82f
Compare
1282353
to
cb07e1b
Compare
4efc82f
to
a834895
Compare
This pull request has merge conflicts that must be resolved before it can be merged. |
a834895
to
79a3492
Compare
This pull request has resolved merge conflicts and is ready for review. |
This pull request has merge conflicts that must be resolved before it can be merged. |
79a3492
to
e915037
Compare
This pull request has resolved merge conflicts and is ready for review. |
So! This is an updated embed modal, based on new modal designs. It comes with a much better looking and more functional copy-paste component, and renders the embed previews with the correct height for the first time. Oh, and I'm switching embeds to always be light mode. Since most blogs/magazines have a light background.
There is a varied degree of cursed things I had to do to make this work:
http
to theframe-src
CSP directiveTo make inline styles on the embed codes work in the previews, I had to add sha256 hashes of every inline style I used to CSP