planet.kde.org: Limit width of a HTML5 video element to width of container

Ben Cooksley bcooksley at kde.org
Sun Jun 21 08:56:50 UTC 2015


On Sat, Jun 20, 2015 at 9:05 PM, Alexander Mezin
<mezin.alexander at gmail.com> wrote:

Hi Alexander,

> Seems that reviewboard isn't configured for planet-kde-org,
> so I'm sending the patch here.

I've now fixed that.

>
> Currently if a video is wider than the post container, its rightmost
> part is cropped. This change should make it downscale instead.
>
> Not sure if it's the right css file though.

That looks fine to me - i've now committed the change. Thanks for
looking into the issue and producing a patch.

Regards,
Ben Cooksley
KDE Sysadmin

> ---
>  website/main.css | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/website/main.css b/website/main.css
> index 99dce3f..f531002 100644
> --- a/website/main.css
> +++ b/website/main.css
> @@ -171,3 +171,7 @@ blockquote{
>  .table-condensed>thead>tr>th, .table-condensed>tbody>tr>th,
> .table-condensed>tfoot>tr>th, .table-condensed>thead>tr>td,
> .table-condensed>tbody>tr>td, .table-condensed>tfoot>tr>td{
>      padding: 1px;
>  }
> +
> +video {
> +    max-width: 100%;
> +}
> --
> 2.4.4
> _______________________________________________
> kde-www mailing list
> kde-www at kde.org
> https://mail.kde.org/mailman/listinfo/kde-www


More information about the kde-www mailing list