fix(board): restore layouts after column changes (#6979)

* fix: preserve geometry across layout resizing

* style: format layout migration snapshots
This commit is contained in:
Thomas authored and GitHub committed 2026-10-03 22:32:49 +02:00
1 parent eec910aabb
commit e048ae9cd7
14 files changed
+5567 -10

No files matched your search

@@ -0,0 +1 @@
ALTER TABLE "layout" ADD COLUMN "resize_source" text;
File diff suppressed because it is too large. Load diff
@@ -113,6 +113,13 @@
"when": 1788763848932,
"tag": "0015_add_byte_unit_system",
"breakpoints": true
},
{
"idx": 16,
"version": "7",
"when": 1790988597957,
"tag": "0016_add_layout_resize_source",
"breakpoints": true
}
]
}
@@ -0,0 +1 @@
ALTER TABLE `layout` ADD `resize_source` text;
File diff suppressed because it is too large. Load diff
@@ -337,6 +337,13 @@
"when": 1788763848930,
"tag": "0047_add_byte_unit_system",
"breakpoints": true
},
{
"idx": 48,
"version": "6",
"when": 1790988595595,
"tag": "0048_add_layout_resize_source",
"breakpoints": true
}
]
}
+1
View File
@@ -349,6 +349,7 @@ export const layouts = pgTable("layout", {
rightGutterColumnCount: smallint().notNull().default(0),
breakpoint: smallint().notNull().default(0),
role: varchar({ length: 16 }).$type<LayoutRole>().notNull().default("custom"),
resizeSource: text(),
});
export const itemLayouts = pgTable(
+1
View File
@@ -334,6 +334,7 @@ export const layouts = sqliteTable("layout", {
rightGutterColumnCount: int().notNull().default(0),
breakpoint: int().notNull().default(0),
role: text().$type<LayoutRole>().notNull().default("custom"),
resizeSource: text(),
});
export const itemLayouts = sqliteTable(