Skip to content

Commit 465c940

Browse files
committed
refactor: use positronClassNames for footer className construction
1 parent e6d27ae commit 465c940

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/vs/workbench/contrib/positronNotebook/browser/notebookCells/CodeCellStatusFooter.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { PositronNotebookCodeCell } from '../PositronNotebookCells/PositronNoteb
1717
import { formatCellDuration, formatTimestamp, getRelativeTime, isMoreThanOneHourAgo } from './cellExecutionUtils.js';
1818
import { Icon } from '../../../../../platform/positronActionBar/browser/components/icon.js';
1919
import { Codicon } from '../../../../../base/common/codicons.js';
20+
import { positronClassNames } from '../../../../../base/common/positronUtilities.js';
2021

2122
interface CodeCellStatusFooterProps {
2223
cell: PositronNotebookCodeCell;
@@ -185,7 +186,7 @@ export function CodeCellStatusFooter({ cell, hasError }: CodeCellStatusFooterPro
185186
aria-hidden={isCollapsed || undefined}
186187
aria-label={isCollapsed ? undefined : getAriaLabel()}
187188
aria-live={isCurrentlyRunning ? 'polite' : 'off'}
188-
className={`positron-notebook-code-cell-footer${isCollapsed ? ' collapsed' : ''}`}
189+
className={positronClassNames('positron-notebook-code-cell-footer', { 'collapsed': isCollapsed })}
189190
data-execution-status={dataExecutionStatus}
190191
role='status'
191192
>

0 commit comments

Comments
 (0)