From dcde3fd12f3a646782e412f43bc49293a445d8b2 Mon Sep 17 00:00:00 2001 From: Sudev Kiyada Date: Wed, 6 Aug 2025 10:42:42 +0530 Subject: [PATCH] svh to lvh --- .../ScrollerVideo/ScrollerVideo.mdx | 22 +++++++++---------- .../ScrollerVideo.stories.svelte | 2 +- .../ScrollerVideo/ScrollerVideo.svelte | 12 +++++----- .../demo/AdvancedUsecases.svelte | 4 ++-- .../ScrollerVideo/demo/Embedded.svelte | 8 +++---- .../demo/WithAi2svelteForegrounds.svelte | 2 +- .../demo/WithScrollerBase.svelte | 4 ++-- .../demo/WithTextForegrounds.svelte | 2 +- .../ScrollerVideo/ts/ScrollerVideo.ts | 2 +- 9 files changed, 30 insertions(+), 28 deletions(-) diff --git a/src/components/ScrollerVideo/ScrollerVideo.mdx b/src/components/ScrollerVideo/ScrollerVideo.mdx index 9b092bf9..daaeb404 100644 --- a/src/components/ScrollerVideo/ScrollerVideo.mdx +++ b/src/components/ScrollerVideo/ScrollerVideo.mdx @@ -10,7 +10,7 @@ The `ScrollerVideo` component creates interactive video experiences that respond ## Basic demo -To use the `ScrollerVideo` component, import it and provide the video source. Set the `height` prop to any valid CSS height value such as `1200px`, `50vh`, or `500svh` to set the scroll height. +To use the `ScrollerVideo` component, import it and provide the video source. Set the `height` prop to any valid CSS height value such as `1200px`, `50vh`, or `500lvh` to set the scroll height. It is suggested to use 'lvh' or 'svh' units instead of 'vh' for the height, as these units are more reliable across different devices. [Demo](?path=/story/components-graphics-scrollervideo--demo) @@ -19,7 +19,7 @@ To use the `ScrollerVideo` component, import it and provide the video source. Se import { ScrollerVideo } from '@reuters-graphics/graphics-components'; - + ``` ## Optimising videos @@ -53,13 +53,13 @@ To show different videos based on the screen width, use the `ScrollerVideo` comp {#if width < 600} - + {:else if width < 1200} - + {:else} - + {/if} ``` @@ -78,14 +78,14 @@ Setting `embedded` will autoplay the whole `ScrollerVideo` component like a vide @@ -120,7 +120,7 @@ With the graphics kit, you'll likely get your text and prop values from an Archi type: scroller-video id: alps-scroller src: videos/alps.mp4 - height: 800svh + height: 800lvh # Array of foregrounds [.foregrounds] @@ -213,7 +213,7 @@ endTime: 0.3 # When to stop showing the headline [blocks] type: scroller-video id: my-scroller-video - height: 800svh + height: 800lvh # Adjust prop names as needed srcSm: videos/my-video-sm.mp4 @@ -371,7 +371,7 @@ The `ScrollerVideo` component can be used inside the [ScrollerBase](?path=/story