Updated logic of mobile/tablet sizes & scrollbars.

This commit is contained in:
2024-06-23 20:24:57 -06:00
parent 74f4b11ad6
commit 044f721d34
2 changed files with 2 additions and 2 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
@@ -130,7 +130,7 @@ export function DesignPreview({previewOption = {widthDimension: 0}}) {
return 0;
}
// const scrollbarOffset = 7; Looks like browser scrollbar is not included in the width calculation anymore.
// const scrollbarOffset = 7; // Looks like browser scrollbar is not included in the width calculation anymore.
const scrollbarOffset = 0;
return window.innerWidth / 2 - previewOption.widthDimension / 2 - scrollbarOffset;
}