fix broken grid, maybe

This commit is contained in:
ibs0d 2026-03-15 21:24:38 +11:00 committed by GitHub
parent a0ca322129
commit aad4739643
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -359,7 +359,7 @@ export default function DraggableGridLayout({
// subtract container margin, 1 camera takes up at least 4 rows
// account for additional margin on bottom of each row
return (
((availableWidth ?? window.innerWidth) - 2 * marginValue) /
((availableWidth || window.innerWidth) - 2 * marginValue) /
12 /
aspectRatio -
marginValue +
@ -712,7 +712,7 @@ export default function DraggableGridLayout({
/>
<Responsive
className="grid-layout"
width={availableWidth ?? window.innerWidth}
width={availableWidth || window.innerWidth}
layouts={{
lg: currentGridLayout,
md: currentGridLayout,