From c627927bf57af81d2a33aea00954800654c4e064 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Wed, 25 Aug 2021 14:51:18 -0700 Subject: [PATCH] fix: make preview take 3/4 of the screen (#8446) --- src/web/traceViewer/ui/filmStrip.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/web/traceViewer/ui/filmStrip.tsx b/src/web/traceViewer/ui/filmStrip.tsx index b9d7b75cb8..e685d0877a 100644 --- a/src/web/traceViewer/ui/filmStrip.tsx +++ b/src/web/traceViewer/ui/filmStrip.tsx @@ -42,7 +42,8 @@ export const FilmStrip: React.FunctionComponent<{ if (previewPoint !== undefined && screencastFrames) { const previewTime = boundaries.minimum + (boundaries.maximum - boundaries.minimum) * previewPoint.x / measure.width; previewImage = screencastFrames[upperBound(screencastFrames, previewTime, timeComparator) - 1]; - previewSize = previewImage ? inscribe({width: previewImage.width, height: previewImage.height}, { width: 600, height: 600 }) : undefined; + + previewSize = previewImage ? inscribe({ width: previewImage.width, height: previewImage.height }, { width: (window.innerWidth * 3 / 4) | 0, height: (window.innerHeight * 3 / 4) | 0 }) : undefined; } return
{