Skip to content

Commit 910aabb

Browse files
committed
fix(tables): align the workflow-group drag ghost with the label it previews
Cursor Bugbot caught the sibling of the ghost fixed in column-header-menu: this one kept an inline `font-weight:500` after the band label dropped to the inherited 400, so the drag preview no longer matched the text it represents — the same mirror drift this PR fixes for the width-measurement spans. It was drifted on size too: hardcoded `font-size:13px` against a label that is `text-xs` (11px), so it never matched. Both now come from the token the label uses, which also clears the inline fontWeight the styling rule bans.
1 parent 94addba commit 910aabb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/headers/workflow-group-meta-cell.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,9 @@ export function WorkflowGroupMetaCell({
368368

369369
const ghost = document.createElement('div')
370370
ghost.textContent = name
371+
ghost.className = 'text-xs'
371372
ghost.style.cssText =
372-
'position:absolute;top:-9999px;padding:4px 8px;background:var(--bg);border:1px solid var(--border);border-radius:4px;font-size:13px;font-weight:500;white-space:nowrap;color:var(--text-primary)'
373+
'position:absolute;top:-9999px;padding:4px 8px;background:var(--bg);border:1px solid var(--border);border-radius:4px;white-space:nowrap;color:var(--text-primary)'
373374
document.body.appendChild(ghost)
374375
e.dataTransfer.setDragImage(ghost, ghost.offsetWidth / 2, ghost.offsetHeight / 2)
375376
requestAnimationFrame(() => ghost.parentNode?.removeChild(ghost))

0 commit comments

Comments
 (0)