123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|497|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Site & Server -> YouTube videos on mobile view

Sun, 20 Jul 2025, 06:09
AndyH

YouTube videos on mobile view


Anything you can do to improve youtube videos in comments /posts when on mobile view?

They are a pain for two reasons:

1) they are twice the width of the view (esp in portrait) forcing to lose half the content and needing horizontal scrolling.

2) for some reason scrolling can be borked, sometimes it's like there's some script fighting with the horizontal position and it snaps back to the original position. It's like I have to find a sweet spot to get horizontal scrolling to work.

|update| -=-=- |update|
Switch 2 thread as an example.

-=-=-
Andy H
8-bit games at www.hewco.uk
Cartoons at awful.ovine.net
Ovine at ovine.net
Sun, 20 Jul 2025, 06:23
Jayenkai
Scrolling bork might be because it's too wide. Or it might just be the way the browser's handling iframes. I'm not sure iframes are a standard that's being kept up, if I'm honest!

As for the width, I'm not 100% sure how easy that would be, as the BBCode converter doesn't have access to your cookies, (for sanity's sake!) and the cookie is the thing that sets the mobile-view.

Honestly would be great to say "make it x%", but then the youtube video itself would (I think) be the wrong size inside the iframe. .. I think.
Not sure.
I'll investigate!

-=-=-
''Load, Next List!''
Sun, 20 Jul 2025, 06:39
Jayenkai
Magic new CSS thing that Microsoft Copilot just taught me..
style="width:95%; aspect-ratio:16/9;"

Ooooh!!!! Aspect-ratio! That's a nice thing to know.

That should solve the scale. Whether it fixes your scrolling issue, though?
Let me know.
(Also lemmie know what phone/browser so I can see if I can replicate it)

-=-=-
''Load, Next List!''
Sun, 20 Jul 2025, 13:35
AndyH
Working great!

The scrolling vertically is not affected, now it all fits the width it looks and works great on mobile.

-=-=-
Andy H
8-bit games at www.hewco.uk
Cartoons at awful.ovine.net
Ovine at ovine.net