Skip to content

Commit f1d8200

Browse files
committed
refactor(export-branded-video): improve variable declaration formatting in drawChromeTitleBar function
1 parent bb6f47d commit f1d8200

File tree

2 files changed

+38
-8
lines changed

2 files changed

+38
-8
lines changed

packages/visualizer/src/component/player/remotion/CyberOverlays.tsx

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,13 @@ export function SignalBarsIcon({
304304
}: { barWidth?: number; gap?: number } = {}): React.ReactElement {
305305
const w = barWidth * 4 + gap * 3;
306306
return (
307-
<svg width={w} height="12" viewBox={`0 0 ${w} 12`}>
307+
<svg
308+
width={w}
309+
height="12"
310+
viewBox={`0 0 ${w} 12`}
311+
role="img"
312+
aria-label="Signal bars"
313+
>
308314
<rect x="0" y="8" width={barWidth} height="4" rx="0.5" fill="#fff" />
309315
<rect
310316
x={barWidth + gap}
@@ -336,7 +342,13 @@ export function SignalBarsIcon({
336342

337343
export function WifiIcon(): React.ReactElement {
338344
return (
339-
<svg width="14" height="12" viewBox="0 0 14 12">
345+
<svg
346+
width="14"
347+
height="12"
348+
viewBox="0 0 14 12"
349+
role="img"
350+
aria-label="WiFi"
351+
>
340352
<path
341353
d="M7 10.5a1.5 1.5 0 100 3 1.5 1.5 0 000-3zM3.5 8.5C4.5 7.2 5.7 6.5 7 6.5s2.5.7 3.5 2"
342354
stroke="#fff"
@@ -404,15 +416,27 @@ export function BatteryIcon({
404416
export function AndroidNavBar(): React.ReactElement {
405417
return (
406418
<>
407-
<svg width="16" height="16" viewBox="0 0 16 16">
419+
<svg
420+
width="16"
421+
height="16"
422+
viewBox="0 0 16 16"
423+
role="img"
424+
aria-label="Back"
425+
>
408426
<polygon
409427
points="11,2 5,8 11,14"
410428
fill="none"
411429
stroke="rgba(255,255,255,0.6)"
412430
strokeWidth="1.5"
413431
/>
414432
</svg>
415-
<svg width="16" height="16" viewBox="0 0 16 16">
433+
<svg
434+
width="16"
435+
height="16"
436+
viewBox="0 0 16 16"
437+
role="img"
438+
aria-label="Home"
439+
>
416440
<circle
417441
cx="8"
418442
cy="8"
@@ -422,7 +446,13 @@ export function AndroidNavBar(): React.ReactElement {
422446
strokeWidth="1.5"
423447
/>
424448
</svg>
425-
<svg width="16" height="16" viewBox="0 0 16 16">
449+
<svg
450+
width="16"
451+
height="16"
452+
viewBox="0 0 16 16"
453+
role="img"
454+
aria-label="Recent"
455+
>
426456
<rect
427457
x="3"
428458
y="3"

packages/visualizer/src/component/player/remotion/export-branded-video.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ function drawChromeTitleBar(
226226
) {
227227
const h = CHROME_TITLE_BAR_H;
228228
drawTitleBarBase(ctx, x, y, w, h);
229-
const abx = x + 70,
230-
aby = y + h / 2 - 11,
231-
abw = w - 84;
229+
const abx = x + 70;
230+
const aby = y + h / 2 - 11;
231+
const abw = w - 84;
232232
ctx.fillStyle = 'rgba(0,0,0,0.4)';
233233
roundRect(ctx, abx, aby, abw, 22, 6);
234234
ctx.fill();

0 commit comments

Comments
 (0)