0
0
Fork 0

Adjust status embeds (#4808)

* Adjust status embeds

Adjust styles of embed code. Adjust styles of embed pages. Fix overflow of embed-modal.

* Remove trailing whitespace

* Using width from the variable
This commit is contained in:
Lynx Kotoura 2017-09-05 19:31:24 +09:00 committed by Eugen Rochko
parent 672df4ecc0
commit 4c3dd0b254
4 changed files with 97 additions and 92 deletions

View file

@ -40,8 +40,7 @@ class OEmbedSerializer < ActiveModel::Serializer
attributes = {
src: embed_short_account_status_url(object.account, object),
class: 'mastodon-embed',
frameborder: '0',
scrolling: 'no',
style: 'max-width: 100%; border: none;',
width: width,
height: height,
}