Skip to content

Commit aeb0779

Browse files
committed
revert(canvas): drop the workflow-editor panel changes from this PR
The canvas panel is under active modification elsewhere, so this PR stays out of it. Reverts the toolbar search input, the sub-block table cell and its overlay mirror, the messages-input textarea and its mirror, and the block drag preview — all back to staging verbatim. Cursor Bugbot was right about that last one and I was wrong: the preview mirrors the drag DESTINATION (its TSDoc says "looks like a workflow block", and 250px/16px are block-card dimensions), not the toolbar chip I had compared it against. workflow-block-view renders the title `font-medium text-md`, so its 500 was correct. Moot now that the file is reverted, but worth recording so the next sweep does not repeat the mistake. The globals `th` rule still covers the sub-block table header without a call-site class; the explicit font-medium there simply wins over it, exactly as staging renders today.
1 parent e7b6f9a commit aeb0779

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/table/table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ export function Table({
378378
<th
379379
key={column}
380380
className={cn(
381-
'bg-transparent px-2.5 py-[5px] text-left text-[var(--text-tertiary)] text-sm',
381+
'bg-transparent px-2.5 py-[5px] text-left font-medium text-[var(--text-tertiary)] text-sm',
382382
index < columns.length - 1 && 'border-[var(--border-1)] border-r'
383383
)}
384384
>

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/toolbar/components/drag-preview.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export function createDragPreview(info: DragItemInfo): HTMLElement {
5858
text.style.cssText = `
5959
color: var(--text-primary);
6060
font-size: 16px;
61+
font-weight: 500;
6162
white-space: nowrap;
6263
overflow: hidden;
6364
text-overflow: ellipsis;

0 commit comments

Comments
 (0)