app frontend fix for 0 width containers

This commit is contained in:
Ruben Fiszel
2025-03-19 18:58:54 +01:00
parent b1f3d3f39a
commit 136e3f8085
@@ -64,7 +64,9 @@
const sizeObserver = new ResizeObserver((entries) => {
requestAnimationFrame(() => {
let width = entries[0].contentRect.width
if (width === 0) {
width = 1
}
if (width === containerWidth) return
if ($app.mobileViewOnSmallerScreens != false || !getComputedCols) {
getComputedCols = getColumn(parentWidth ?? width, cols)