fix: make preview take 3/4 of the screen (#8446)
This commit is contained in:
parent
95be45967a
commit
c627927bf5
|
|
@ -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 <div className='film-strip' ref={ref}>{
|
||||
|
|
|
|||
Loading…
Reference in a new issue