thered.stream - wrong size video thumbnails

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2895
Joined: 2012-08-19, 20:32

thered.stream - wrong size video thumbnails

Unread post by back2themoon » 2025-04-13, 21:10

I've seen this elsewhere too, i.e. I think this is happening more frequently lately. Video functionality is there, but the preview thumbnail size is off.

https://thered.stream/how-trump-may-esc ... estinians/

Scroll a bit down, and you will see this incorrectly sized thumbnail:
Preview1.png
https://thered.stream/echoes-of-empire- ... -in-kenya/

Right at the top, you will see this incorrectly sized thumbnail:
Preview2.png
Error Console:
EC.png
You do not have the required permissions to view the files attached to this post.

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2895
Joined: 2012-08-19, 20:32

Re: thered.stream - wrong size video thumbnails

Unread post by back2themoon » 2025-04-13, 21:13

Also:
EC2.png
You do not have the required permissions to view the files attached to this post.

User avatar
adoxa
Lunatic
Lunatic
Posts: 427
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: thered.stream - wrong size video thumbnails

Unread post by adoxa » 2025-04-14, 02:12

It's the missing aspect-ratio again; try this userstyle.

Code: Select all

@-moz-document domain("thered.stream") {
  .media-container iframe {
    height: 720px
  }
}

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2895
Joined: 2012-08-19, 20:32

Re: thered.stream - wrong size video thumbnails

Unread post by back2themoon » 2025-04-14, 06:05

Thank you, adoxa. I think it fixes the second example, but not the first one.

User avatar
adoxa
Lunatic
Lunatic
Posts: 427
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: thered.stream - wrong size video thumbnails

Unread post by adoxa » 2025-04-14, 08:28

Oops. Here's another version that fixes both and is a bit more flexible.

Code: Select all

@-moz-document domain("thered.stream") {
  .container iframe {
    height: calc(var(--content-width) * 9 / 16)
  }
  .single56__content iframe {
    height: calc(var(--narrow-width) * 9 / 16)
  }
}

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2895
Joined: 2012-08-19, 20:32

Re: thered.stream - wrong size video thumbnails

Unread post by back2themoon » 2025-04-14, 15:50

Thanks again. You fixes must make for excellent learning material! Hope to be able to "decode" them soon - I am trying.

This aspect-ratio thing is probably time-consuming to implement natively, I guess.

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2895
Joined: 2012-08-19, 20:32

Re: thered.stream - wrong size video thumbnails

Unread post by back2themoon » 2025-04-22, 17:53

adoxa wrote:
2025-04-14, 02:12
It's the missing aspect-ratio again;
Can't say for sure, but this seems like a very similar issue. If it's not, I'll open another topic. (scroll just a bit down, first YouTube video embed)

https://www.pcsteps.gr/425724-%cf%84%ce ... art-world/
Narrow Mario.png
Tried both your styles in this topic, but they don't apply in this case (I've changed the URLs where necessary).
You do not have the required permissions to view the files attached to this post.

User avatar
adoxa
Lunatic
Lunatic
Posts: 427
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: thered.stream - wrong size video thumbnails

Unread post by adoxa » 2025-04-23, 01:05

It's still aspect-ratio, but the width is applied differently.

Code: Select all

@-moz-document domain("www.pcsteps.gr") {
  @media (min-width:576px) {
    .container iframe {
      height: calc((540px * 2 / 3 - 30px) * 9 / 16) !important;
    }
  }
  @media (min-width:768px) {
    .container iframe {
      height: calc((720px * 2 / 3 - 30px) * 9 / 16) !important;
    }
  }
  @media (min-width:992px) {
    .container iframe {
      height: calc((960px * 2 / 3 - 30px) * 9 / 16) !important;
    }
  }
  @media (min-width:1200px) {
    .container iframe {
      height: calc((1140px * 2 / 3 - 30px) * 9 / 16) !important;
    }
  }
}
What all that means:

1140px - original width;
2/3 - iframe is 66%;
30px - 15px margin left & right;
9/16 - 16:9 aspect ratio.

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2895
Joined: 2012-08-19, 20:32

Re: thered.stream - wrong size video thumbnails

Unread post by back2themoon » 2025-04-23, 10:35

Many thanks again, for the extra info too. Some day I'll make sense out of all this.