Add a drill-in button beside Data panel gradient preview widgets (#4398)

This commit is contained in:
Keavon Chambers
2026-08-03 04:31:48 -07:00
committed by GitHub
parent 2f24459344
commit 808662e3d2
5 changed files with 153 additions and 113 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import type { Layout, LayoutGroup, WidgetDiff, WidgetInstance } from "/wrapper/pkg/graphite_wasm_wrapper";
type UIItem = Layout | LayoutGroup | WidgetInstance[] | WidgetInstance;
type UIItem = Layout | LayoutGroup | WidgetInstance[][] | WidgetInstance[] | WidgetInstance;
// Updates a widget layout based on a list of updates, giving the new layout by mutating the `layout` argument
export function patchLayout(layout: /* &mut */ Layout, diffs: WidgetDiff[]) {
diffs.forEach((update) => {