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

View File

@@ -12,9 +12,9 @@
<tbody>
{#each widgetData.tableWidgets as row}
<tr>
{#each row as widget}
{#each row as cell}
<td colspan={row.length < columns ? columns - row.length + 1 : undefined}>
<WidgetSpan direction="row" widgets={[widget]} {layoutTarget} narrow={true} />
<WidgetSpan direction="row" widgets={cell} {layoutTarget} narrow={true} />
</td>
{/each}
</tr>

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) => {