prosilver French edition

Weird problem with the phpBB Media Embed PlugIn extension - prosilver French edition

Weird problem with the phpBB Media Embed PlugIn extension

by Bruce Banner » Thu Aug 15, 2024 9:35 pm

Has to do with Twiiter, or whatever we're supposed to call it now. If on the Media Embed settings page in the ACP, I enable full width content, and then post a tweet, I get something like this,
Capture.PNG
Looks fine, but that's with the lights on. With the lights off, it looks like this,
Capture2.PNG
Big huge white block around the tweet, and I can't figure out any way to get rid of it.
Bruce Banner
Registered User
Posts: 1383
Joined: Thu Sep 25, 2014 10:36 am

Re: Weird problem with the phpBB Media Embed PlugIn extensio

by cabot » Fri Aug 16, 2024 7:43 am

You need to define a maximum display width directly from the Twitter extension settings.
Media Embed Settings.png
User avatar
cabot
Registered User
Posts: 771
Joined: Sat Jan 07, 2012 4:16 pm

Re: Weird problem with the phpBB Media Embed PlugIn extensio

by Bruce Banner » Fri Aug 16, 2024 7:49 pm

cabot wrote:You need to define a maximum display width directly from the Twitter extension settings.
That's great, thanks. Works fine for the original post. Unfortunately, I've got the same problem with quotes. I've got this line in my prosilver stylesheet,

Code: Select all

blockquote [data-s9e-mediaembed] { max-width: 50% !important; }
And when I quote the post, I get a white block again. Is there any code that I can add to the stylesheet, or to any other file, that could shrink down tweets in quotes without a white block around them?

EDIT: It's OK, never mind. I just added the following lines to the stylesheet,

Code: Select all

[data-s9e-mediaembed] { max-width: 1280px !important; }

blockquote [data-s9e-mediaembed] { max-width: 640px !important; }

[data-s9e-mediaembed="twitter"] { max-width: 550px !important; }

blockquote [data-s9e-mediaembed="twitter"] { max-width: 275px !important; }
Thanks again.
Bruce Banner
Registered User
Posts: 1383
Joined: Thu Sep 25, 2014 10:36 am