Skip to content

Commit 595ff19

Browse files
author
Oskar Schiedewitz
committed
update styling
1 parent 7f74f18 commit 595ff19

3 files changed

Lines changed: 28 additions & 4 deletions

File tree

src/components/WidgetWorkbench.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ export function WidgetWorkbench({
2222
(w) => w.elements?.composer ?? (w as any)?.composer
2323
);
2424
const defaultKey =
25-
composerWidgets[0]?.registryName ?? composerWidgets[0]?.type ?? ADD_WIDGET_KEY;
25+
composerWidgets[0]?.registryName ??
26+
composerWidgets[0]?.type ??
27+
ADD_WIDGET_KEY;
2628
const [mode, setMode] = useState<string>(defaultKey);
2729
const [removeNotice, setRemoveNotice] = useState<string>("");
2830

@@ -101,7 +103,7 @@ export function WidgetWorkbench({
101103
}`}
102104
onClick={() => setMode(ADD_WIDGET_KEY)}
103105
>
104-
+
106+
105107
</button>
106108
<button
107109
type="button"
@@ -110,7 +112,7 @@ export function WidgetWorkbench({
110112
}`}
111113
onClick={() => setMode(DEMO_TAB_KEY)}
112114
>
113-
Demo
115+
🔎
114116
</button>
115117
{composerWidgets.map((w) => (
116118
<div

src/styles/workbench.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
margin: 0;
1313
}
1414

15+
.pill-row {
16+
display: flex;
17+
align-items: center;
18+
flex-wrap: wrap;
19+
gap: var(--space-2);
20+
}
21+
1522
/* Full-page workbench modal */
1623
.workbench-modal {
1724
background: var(--surface);
@@ -442,6 +449,19 @@
442449
gap: 0;
443450
}
444451

452+
.pill-row .pill-toggle,
453+
.pill-row .pill-group__label,
454+
.pill-row .pill-group__remove {
455+
box-shadow: none;
456+
}
457+
458+
.pill-row .pill-toggle:hover,
459+
.pill-row .pill-group__label:hover,
460+
.pill-row .pill-group__remove:hover {
461+
box-shadow: none;
462+
transform: none;
463+
}
464+
445465
.pill-group__label,
446466
.pill-group__remove {
447467
background: transparent;

src/widgets/demoDiagnostics.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ export const HEURISTIC_RULES: HeuristicRule[] = [
7171
hit:
7272
action.action === "addVote" &&
7373
action.added.length === 0 &&
74-
action.deleted.length === 0,
74+
action.deleted.length === 0 &&
75+
action.beforeCount === action.afterCount,
7576
detail: "Action returned but did not persist a vote",
7677
}),
7778
},
@@ -199,6 +200,7 @@ export const DEMO_STREAMS: Record<string, DemoStream[]> = {
199200
};
200201

201202
const pollId = await createAndResolveId(prompt, options);
203+
await wait(5);
202204
const pollId2 = await createAndResolveId(prompt2, options2);
203205

204206
await wait(5);

0 commit comments

Comments
 (0)