playwright-director 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/README.md +191 -31
  2. package/dist/Tutorial.d.ts +2 -0
  3. package/dist/Tutorial.d.ts.map +1 -1
  4. package/dist/Tutorial.js +10 -2
  5. package/dist/Tutorial.js.map +1 -1
  6. package/dist/client.d.ts +33 -0
  7. package/dist/client.d.ts.map +1 -0
  8. package/dist/client.js +72 -0
  9. package/dist/client.js.map +1 -0
  10. package/dist/init.js +6 -6
  11. package/dist/init.js.map +1 -1
  12. package/dist/merge.d.ts.map +1 -1
  13. package/dist/merge.js +2 -2
  14. package/dist/merge.js.map +1 -1
  15. package/dist/reporter.d.ts.map +1 -1
  16. package/dist/reporter.js +3 -0
  17. package/dist/reporter.js.map +1 -1
  18. package/dist/site/build-site.d.ts +18 -1
  19. package/dist/site/build-site.d.ts.map +1 -1
  20. package/dist/site/build-site.js +39 -8
  21. package/dist/site/build-site.js.map +1 -1
  22. package/dist/site/embed.d.ts +40 -18
  23. package/dist/site/embed.d.ts.map +1 -1
  24. package/dist/site/embed.js +48 -13
  25. package/dist/site/embed.js.map +1 -1
  26. package/dist/site/generate-manifest.d.ts.map +1 -1
  27. package/dist/site/generate-manifest.js +28 -3
  28. package/dist/site/generate-manifest.js.map +1 -1
  29. package/dist/site/scaffold.d.ts +7 -0
  30. package/dist/site/scaffold.d.ts.map +1 -1
  31. package/dist/site/scaffold.js +33 -7
  32. package/dist/site/scaffold.js.map +1 -1
  33. package/dist/site/scan-tutorials.d.ts +4 -1
  34. package/dist/site/scan-tutorials.d.ts.map +1 -1
  35. package/dist/site/scan-tutorials.js +9 -7
  36. package/dist/site/scan-tutorials.js.map +1 -1
  37. package/dist/site/strings.d.ts +34 -0
  38. package/dist/site/strings.d.ts.map +1 -0
  39. package/dist/site/strings.js +91 -0
  40. package/dist/site/strings.js.map +1 -0
  41. package/dist/site/types.d.ts +27 -1
  42. package/dist/site/types.d.ts.map +1 -1
  43. package/dist/tts-provider.js +1 -1
  44. package/dist/voice-dir.d.ts +9 -0
  45. package/dist/voice-dir.d.ts.map +1 -0
  46. package/dist/voice-dir.js +21 -0
  47. package/dist/voice-dir.js.map +1 -0
  48. package/dist/voice.d.ts +3 -0
  49. package/dist/voice.d.ts.map +1 -1
  50. package/dist/voice.js +29 -16
  51. package/dist/voice.js.map +1 -1
  52. package/package.json +9 -2
  53. package/schemas/embed-v1.schema.json +69 -0
  54. package/skills/tutorialize/SKILL.md +3 -0
  55. package/skills/tutorialize/agent.md +3 -0
  56. package/skills/tutorialize/references/api.md +19 -5
  57. package/templates/site/public/widget.js +278 -141
  58. package/templates/site/src/components/TutorialsHome.astro +36 -8
  59. package/templates/site/src/components/VideoCard.astro +10 -5
  60. package/templates/site/src/components/VideoModal.astro +4 -3
  61. package/templates/site/src/i18n.ts +14 -0
  62. package/templates/site/src/layouts/Base.astro +7 -2
  63. package/templates/site/src/pages/[lang]/index.astro +16 -0
  64. package/templates/site/src/pages/[slug].astro +142 -30
@@ -1,4 +1,6 @@
1
1
  ---
2
+ import { t, RTL_LANGS } from '../i18n';
3
+
2
4
  interface Props {
3
5
  id: string;
4
6
  title: string;
@@ -8,27 +10,30 @@ interface Props {
8
10
  href?: string;
9
11
  /** Recording variant (e.g. 'mobile'); absent = regular/desktop */
10
12
  variant?: string;
13
+ /** Narration language */
14
+ lang?: string;
11
15
  }
12
16
 
13
- const { id, title, duration, videoUrl, steps = [], href, variant } = Astro.props;
17
+ const { id, title, duration, videoUrl, steps = [], href, variant, lang } = Astro.props;
18
+ const rtl = RTL_LANGS.includes(lang ?? '');
14
19
  ---
15
20
 
16
- <div class="video-card" data-video-url={videoUrl} data-video-id={id} data-variant={variant ?? ''}>
21
+ <div class="video-card" data-video-url={videoUrl} data-video-id={id} data-variant={variant ?? ''} data-lang={lang ?? ''} lang={lang} dir={rtl ? 'rtl' : undefined}>
17
22
  <div class="video-thumbnail">
18
23
  {steps.length > 0 ? (
19
24
  <div class="step-carousel">
20
25
  {steps.map((src, i) => (
21
26
  <img
22
27
  src={src}
23
- alt={`Step ${i + 1}`}
28
+ alt={t(lang, 'step', { n: i + 1 })}
24
29
  loading={i === 0 ? 'eager' : 'lazy'}
25
30
  class:list={['step-img', { active: i === 0 }]}
26
31
  />
27
32
  ))}
28
33
  {steps.length > 1 && (
29
34
  <>
30
- <button class="step-prev" aria-label="Previous step">‹</button>
31
- <button class="step-next" aria-label="Next step">›</button>
35
+ <button class="step-prev" aria-label={t(lang, 'previousStep')}>‹</button>
36
+ <button class="step-next" aria-label={t(lang, 'nextStep')}>›</button>
32
37
  <div class="step-dots">
33
38
  {steps.map((_, i) => (
34
39
  <span class:list={['step-dot', { active: i === 0 }]}></span>
@@ -1,15 +1,16 @@
1
1
  ---
2
2
  // Video modal component - handles inline video playback with prev/next navigation
3
+ import { t, siteLang } from '../i18n';
3
4
  ---
4
5
 
5
6
  <div id="video-modal" class="video-modal" style="display: none;">
6
- <button class="video-modal-close" aria-label="Close">×</button>
7
+ <button class="video-modal-close" aria-label={t(siteLang, 'close')}>×</button>
7
8
  <div class="video-container">
8
- <button class="video-nav video-nav-prev" aria-label="Previous" style="display: none;">‹</button>
9
+ <button class="video-nav video-nav-prev" aria-label={t(siteLang, 'previous')} style="display: none;">‹</button>
9
10
  <video controls id="modal-video">
10
11
  <source src="" type="video/webm" />
11
12
  </video>
12
- <button class="video-nav video-nav-next" aria-label="Next" style="display: none;">›</button>
13
+ <button class="video-nav video-nav-next" aria-label={t(siteLang, 'next')} style="display: none;">›</button>
13
14
  </div>
14
15
  <div class="video-title-bar">
15
16
  <span id="video-title"></span>
@@ -0,0 +1,14 @@
1
+ // UI strings: dictionaries written by scaffold() (built-in en/fr/ar + config `strings`).
2
+ import siteConfig from './data/site-config.json';
3
+
4
+ const strings: Record<string, Record<string, string>> = (siteConfig as any).strings ?? {};
5
+ export const siteLang = String((siteConfig as any).lang || 'en').split(',')[0].trim();
6
+ export const RTL_LANGS = ['ar', 'he', 'fa', 'ur'];
7
+ /** Language switcher labels, in their own language */
8
+ export const LANG_NAMES: Record<string, string> = { fr: 'Français', en: 'English', ar: 'العربية', es: 'Español', de: 'Deutsch' };
9
+
10
+ /** `t(lang, 'step', { n: 2 })` — primary subtag, falls back to English, then to the key. */
11
+ export function t(lang: string | undefined, key: string, vars: Record<string, string | number> = {}): string {
12
+ const dict = strings[(lang || siteLang).toLowerCase().split('-')[0]] ?? strings.en ?? {};
13
+ return (dict[key] ?? key).replace(/\{(\w+)\}/g, (m, name) => (name in vars ? String(vars[name]) : m));
14
+ }
@@ -1,15 +1,20 @@
1
1
  ---
2
2
  import '../styles/tutorials.css';
3
3
  import siteConfig from '../data/site-config.json';
4
+ import { t, siteLang, RTL_LANGS } from '../i18n';
4
5
 
5
6
  interface Props {
6
7
  title: string;
7
8
  description?: string;
9
+ /** Page language (a tutorial page uses its narration language) */
10
+ lang?: string;
8
11
  }
9
12
 
10
13
  const config = siteConfig as any;
11
14
  const base = import.meta.env.BASE_URL.replace(/\/$/, '');
12
15
  const { title, description = config.title } = Astro.props;
16
+ const lang = Astro.props.lang || siteLang;
17
+ const dir = RTL_LANGS.includes(lang) ? 'rtl' : 'ltr';
13
18
 
14
19
  const cssVars = [
15
20
  config.primaryColor && `--color-primary: ${config.primaryColor}`,
@@ -20,7 +25,7 @@ const cssVars = [
20
25
  ---
21
26
 
22
27
  <!doctype html>
23
- <html lang={config.lang || 'en'}>
28
+ <html lang={lang} dir={dir}>
24
29
  <head>
25
30
  <meta charset="UTF-8" />
26
31
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
@@ -49,7 +54,7 @@ const cssVars = [
49
54
  <div class="footer-content">
50
55
  <span>© {new Date().getFullYear()} {config.title}</span>
51
56
  <span>·</span>
52
- <span>Built with playwright-director</span>
57
+ <span>{t(lang, 'builtWith')}</span>
53
58
  </div>
54
59
  </footer>
55
60
  </body>
@@ -0,0 +1,16 @@
1
+ ---
2
+ // One home page per extra language (/en/, /ar/ …); the default language lives at /.
3
+ import TutorialsHome from '../../components/TutorialsHome.astro';
4
+ import tutorials from '../../data/tutorials.json';
5
+ import { siteLang } from '../../i18n';
6
+
7
+ export function getStaticPaths() {
8
+ const langs = new Set<string>((tutorials as any).videos.map((v: any) => v.lang).filter(Boolean));
9
+ langs.delete(siteLang);
10
+ return [...langs].map((lang) => ({ params: { lang } }));
11
+ }
12
+
13
+ const { lang } = Astro.params;
14
+ ---
15
+
16
+ <TutorialsHome lang={lang} />
@@ -2,16 +2,18 @@
2
2
  import Base from '../layouts/Base.astro';
3
3
  import tutorials from '../data/tutorials.json';
4
4
  import siteConfig from '../data/site-config.json';
5
+ import { t, siteLang, LANG_NAMES } from '../i18n';
5
6
 
6
7
  export function getStaticPaths() {
7
8
  const all = (tutorials as any).videos;
8
- return all.map((v: any, i: number) => ({
9
+ return all.map((v: any) => ({
9
10
  params: { slug: v.id },
10
- props: { video: v, index: i, allVideos: all },
11
+ props: { video: v, allVideos: all },
11
12
  }));
12
13
  }
13
14
 
14
- const { video, index, allVideos } = Astro.props as any;
15
+ const { video, allVideos } = Astro.props as any;
16
+ const L = video.lang as string | undefined;
15
17
  const base = import.meta.env.BASE_URL.replace(/\/$/, '');
16
18
 
17
19
  // 'text' | 'cards' | 'full' | 'none' — see SiteConfig.tutorials.stepsLayout
@@ -19,25 +21,40 @@ const layout = (siteConfig as any).stepsLayout || 'text';
19
21
  // The thumbnail strip is independent of the guide layout (SiteConfig.tutorials.showStrip)
20
22
  const showStrip = (siteConfig as any).showStrip !== false;
21
23
 
22
- type Step = { n?: number; title?: string; text?: string; image?: string; context?: boolean };
24
+ type Step = { n?: number; at?: number; title?: string; text?: string; image?: string; context?: boolean };
23
25
  const stepsDetail: Step[] = video.stepsDetail ?? [];
24
26
 
25
27
  // Sequential display numbers for numbered entries (contexts don't count)
26
28
  let counter = 0;
27
29
  const numbered = stepsDetail.map((s) => ({ ...s, num: s.context ? undefined : ++counter }));
28
30
  const shots = numbered.filter((s) => s.image);
29
-
30
- const poster = shots[0]?.image;
31
- const prev = index > 0 ? allVideos[index - 1] : null;
32
- const next = index < allVideos.length - 1 ? allVideos[index + 1] : null;
31
+ const mmss = (sec: number) => `${Math.floor(sec / 60)}:${String(Math.floor(sec % 60)).padStart(2, "0")}`;
32
+
33
+ const poster = video.poster ?? shots[0]?.image;
34
+ // Prev/next stay in this page's language; the switcher lists the same tutorial in the other languages.
35
+ const sameLang = allVideos.filter((v: any) => (v.lang ?? '') === (video.lang ?? ''));
36
+ const at = sameLang.findIndex((v: any) => v.id === video.id);
37
+ const prev = at > 0 ? sameLang[at - 1] : null;
38
+ const next = at < sameLang.length - 1 ? sameLang[at + 1] : null;
39
+ const translations = allVideos
40
+ .filter((v: any) => (v.slug ?? v.id) === (video.slug ?? video.id) && (v.variant ?? '') === (video.variant ?? ''))
41
+ .sort((a: any, b: any) => String(a.lang).localeCompare(String(b.lang)));
33
42
  ---
34
43
 
35
- <Base title={video.title}>
44
+ <Base title={video.title} lang={video.lang}>
36
45
  <div class="video-page">
37
- <a href={`${base}/`} class="back-link">← All tutorials</a>
46
+ <a href={!L || L === siteLang ? `${base}/` : `${base}/${L}/`} class="back-link"><span class="back-arrow" aria-hidden="true">←</span> {t(L, 'allTutorials')}</a>
47
+
48
+ {translations.length > 1 && (
49
+ <nav class="lang-switch" aria-label={t(L, 'language')}>
50
+ {translations.map((v: any) => (
51
+ <a href={`${base}/${v.id}/`} lang={v.lang} hreflang={v.lang} aria-current={v.id === video.id ? 'page' : undefined}>{LANG_NAMES[v.lang] ?? v.lang}</a>
52
+ ))}
53
+ </nav>
54
+ )}
38
55
 
39
56
  <div class="video-player-wrap">
40
- <video controls class="video-player" poster={poster ? `${base}/videos/${poster}` : undefined}>
57
+ <video controls class="video-player" id="tutorial-video" poster={poster ? `${base}/videos/${poster}` : undefined}>
41
58
  <source src={`${base}/videos/${video.file}`} type="video/webm" />
42
59
  </video>
43
60
  </div>
@@ -60,9 +77,9 @@ const next = index < allVideos.length - 1 ? allVideos[index + 1] : null;
60
77
  data-num={s.num}
61
78
  data-title={s.title || ''}
62
79
  data-text={s.text || ''}
63
- aria-label={`Step ${s.num}${s.title ? `: ${s.title}` : ''}`}
80
+ aria-label={`${t(L, 'step', { n: s.num! })}${s.title ? `: ${s.title}` : ''}`}
64
81
  >
65
- <img src={`${base}/videos/${s.image}`} alt={s.title || `Step ${s.num}`} loading={s.num === 1 ? 'eager' : 'lazy'} />
82
+ <img src={`${base}/videos/${s.image}`} alt={s.title || t(L, 'step', { n: s.num! })} loading={s.num === 1 ? 'eager' : 'lazy'} />
66
83
  <span class="step-num">{s.num}</span>
67
84
  </button>
68
85
  ))}
@@ -76,19 +93,20 @@ const next = index < allVideos.length - 1 ? allVideos[index + 1] : null;
76
93
  s.context ? (
77
94
  <p class="step-context">{s.text}</p>
78
95
  ) : (
79
- <div class="step-block">
96
+ <div class="step-block" data-at={s.at}>
80
97
  <div class="step-header">
81
98
  <span class="step-number">{s.num}</span>
82
99
  <div class="step-copy">
83
100
  {s.title && <h2 class="step-title">{s.title}</h2>}
84
101
  {s.text && <p class="step-text">{s.text}</p>}
85
102
  </div>
103
+ {s.at !== undefined && <button class="step-time" data-at={s.at} aria-label={t(L, 'playFrom', { time: mmss(s.at) })}>▶ {mmss(s.at)}</button>}
86
104
  </div>
87
105
  {s.image && (
88
106
  <img
89
107
  class="step-shot"
90
108
  src={`${base}/videos/${s.image}`}
91
- alt={s.title || `Step ${s.num}`}
109
+ alt={s.title || t(L, 'step', { n: s.num! })}
92
110
  loading={s.num === 1 ? 'eager' : 'lazy'}
93
111
  />
94
112
  )}
@@ -104,12 +122,13 @@ const next = index < allVideos.length - 1 ? allVideos[index + 1] : null;
104
122
  s.context ? (
105
123
  <p class="step-context">{s.text}</p>
106
124
  ) : (
107
- <div class="step-card">
125
+ <div class="step-card" data-at={s.at}>
108
126
  <span class="step-number">{s.num}</span>
109
127
  <div class="step-copy">
110
128
  {s.title && <h2 class="step-title">{s.title}</h2>}
111
129
  {s.text && <p class="step-text">{s.text}</p>}
112
130
  </div>
131
+ {s.at !== undefined && <button class="step-time" data-at={s.at} aria-label={t(L, 'playFrom', { time: mmss(s.at) })}>▶ {mmss(s.at)}</button>}
113
132
  {s.image && (
114
133
  <button
115
134
  class="step-thumb"
@@ -117,9 +136,9 @@ const next = index < allVideos.length - 1 ? allVideos[index + 1] : null;
117
136
  data-num={s.num}
118
137
  data-title={s.title || ''}
119
138
  data-text={s.text || ''}
120
- aria-label={`Enlarge screenshot of step ${s.num}`}
139
+ aria-label={t(L, 'enlarge', { n: s.num! })}
121
140
  >
122
- <img src={`${base}/videos/${s.image}`} alt={s.title || `Step ${s.num}`} loading="lazy" />
141
+ <img src={`${base}/videos/${s.image}`} alt={s.title || t(L, 'step', { n: s.num! })} loading="lazy" />
123
142
  <span class="step-zoom">⤢</span>
124
143
  </button>
125
144
  )}
@@ -135,18 +154,21 @@ const next = index < allVideos.length - 1 ? allVideos[index + 1] : null;
135
154
  s.context ? (
136
155
  <p class="step-context">{s.text}</p>
137
156
  ) : (
138
- <div class:list={['step-row', { 'has-shot': !!s.image }]}>
139
- <button class="step-row-head" aria-expanded="false" disabled={!s.image}>
140
- <span class="step-number">{s.num}</span>
141
- <span class="step-copy">
142
- {s.title && <span class="step-title">{s.title}</span>}
143
- {s.text && <span class="step-text">{s.text}</span>}
144
- </span>
145
- {s.image && <span class="step-chevron">▾</span>}
146
- </button>
157
+ <div class:list={['step-row', { 'has-shot': !!s.image }]} data-at={s.at}>
158
+ <div class="step-row-top">
159
+ <button class="step-row-head" aria-expanded="false" disabled={!s.image}>
160
+ <span class="step-number">{s.num}</span>
161
+ <span class="step-copy">
162
+ {s.title && <span class="step-title">{s.title}</span>}
163
+ {s.text && <span class="step-text">{s.text}</span>}
164
+ </span>
165
+ {s.image && <span class="step-chevron">▾</span>}
166
+ </button>
167
+ {s.at !== undefined && <button class="step-time" data-at={s.at} aria-label={t(L, 'playFrom', { time: mmss(s.at) })}>▶ {mmss(s.at)}</button>}
168
+ </div>
147
169
  {s.image && (
148
170
  <div class="step-reveal">
149
- <img src={`${base}/videos/${s.image}`} alt={s.title || `Step ${s.num}`} loading="lazy" />
171
+ <img src={`${base}/videos/${s.image}`} alt={s.title || t(L, 'step', { n: s.num! })} loading="lazy" />
150
172
  </div>
151
173
  )}
152
174
  </div>
@@ -155,7 +177,7 @@ const next = index < allVideos.length - 1 ? allVideos[index + 1] : null;
155
177
  </section>
156
178
  )}
157
179
 
158
- <nav class="video-nav-row" aria-label="navigation">
180
+ <nav class="video-nav-row" aria-label={t(L, 'navigation')}>
159
181
  <div class="nav-prev">
160
182
  {prev && (
161
183
  <a href={`${base}/${prev.id}`} class="nav-link nav-link-prev">
@@ -226,6 +248,28 @@ const next = index < allVideos.length - 1 ? allVideos[index + 1] : null;
226
248
  });
227
249
  }
228
250
 
251
+ // Chapters: a step's time button seeks the video (the host must answer HTTP
252
+ // Range requests); while playing, the current step gets aria-current.
253
+ const player = document.getElementById('tutorial-video') as HTMLVideoElement | null;
254
+ const chapters = [...document.querySelectorAll<HTMLElement>('[data-at].step-block, [data-at].step-card, [data-at].step-row')];
255
+ if (player) {
256
+ document.querySelectorAll<HTMLElement>('.step-time').forEach((btn) => {
257
+ btn.addEventListener('click', () => {
258
+ player.currentTime = Number(btn.dataset.at);
259
+ player.play().catch(() => {});
260
+ player.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
261
+ });
262
+ });
263
+ let current: HTMLElement | undefined;
264
+ player.addEventListener('timeupdate', () => {
265
+ const now = chapters.filter((c) => Number(c.dataset.at) <= player.currentTime + 0.25).pop();
266
+ if (now === current) return;
267
+ current?.removeAttribute('aria-current');
268
+ now?.setAttribute('aria-current', 'step');
269
+ current = now;
270
+ });
271
+ }
272
+
229
273
  // Text layout: click a step to reveal its screenshot
230
274
  document.querySelectorAll<HTMLElement>('.step-row.has-shot .step-row-head').forEach((head) => {
231
275
  head.addEventListener('click', () => {
@@ -251,6 +295,37 @@ const next = index < allVideos.length - 1 ? allVideos[index + 1] : null;
251
295
  transition: color 0.2s;
252
296
  }
253
297
 
298
+ .lang-switch {
299
+ display: flex;
300
+ flex-wrap: wrap;
301
+ gap: 0.5rem;
302
+ float: inline-end;
303
+ }
304
+
305
+ .lang-switch a {
306
+ display: inline-flex;
307
+ align-items: center;
308
+ min-height: 44px;
309
+ padding: 0 0.9rem;
310
+ border: 1px solid var(--color-border);
311
+ border-radius: 999px;
312
+ color: var(--color-text-muted);
313
+ text-decoration: none;
314
+ font-size: 0.9rem;
315
+ }
316
+
317
+ .lang-switch a[aria-current='page'] {
318
+ background: var(--color-primary);
319
+ border-color: var(--color-primary);
320
+ color: #fff;
321
+ }
322
+
323
+ :global([dir='rtl']) .back-arrow,
324
+ :global([dir='rtl']) .nav-arrow {
325
+ display: inline-block;
326
+ transform: scaleX(-1);
327
+ }
328
+
254
329
  .back-link:hover {
255
330
  color: var(--color-primary);
256
331
  }
@@ -340,6 +415,43 @@ const next = index < allVideos.length - 1 ? allVideos[index + 1] : null;
340
415
  font-size: 0.95rem;
341
416
  }
342
417
 
418
+ .step-time {
419
+ flex-shrink: 0;
420
+ align-self: center;
421
+ min-height: 44px;
422
+ min-width: 44px;
423
+ padding: 0 0.75rem;
424
+ border: 1px solid var(--color-border);
425
+ border-radius: 999px;
426
+ background: var(--color-bg-card);
427
+ color: var(--color-primary);
428
+ font: inherit;
429
+ font-size: 0.85rem;
430
+ font-variant-numeric: tabular-nums;
431
+ cursor: pointer;
432
+ }
433
+
434
+ .step-time:hover {
435
+ border-color: var(--color-primary);
436
+ }
437
+
438
+ [aria-current='step'] {
439
+ border-color: var(--color-primary) !important;
440
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 25%, transparent);
441
+ }
442
+
443
+ .step-block[aria-current='step'] .step-number,
444
+ .step-row[aria-current='step'] .step-number,
445
+ .step-card[aria-current='step'] .step-number {
446
+ outline: 3px solid color-mix(in srgb, var(--color-primary) 35%, transparent);
447
+ }
448
+
449
+ .step-row-top {
450
+ display: flex;
451
+ align-items: center;
452
+ padding-inline-end: 1rem;
453
+ }
454
+
343
455
  .step-context {
344
456
  color: var(--color-text-muted);
345
457
  font-style: italic;
@@ -666,7 +778,7 @@ const next = index < allVideos.length - 1 ? allVideos[index + 1] : null;
666
778
  }
667
779
 
668
780
  .nav-next {
669
- text-align: right;
781
+ text-align: end;
670
782
  }
671
783
 
672
784
  .nav-link {