mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-11 00:06:06 +00:00
app frontend fix for 0 width containers
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user