Skip to content

Commit 2ca6891

Browse files
committed
style(ui): fix prettier formatting in QubitMetricsGrid
1 parent dcc795e commit 2ca6891

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

ui/src/components/features/metrics/QubitMetricsGrid.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ const GridCell = memo(function GridCell({
132132
onClick,
133133
}: GridCellProps) {
134134
const fontSizes = getCellFontSizes(cellSize);
135-
const [tooltipPos, setTooltipPos] = useState<{ x: number; y: number } | null>(null);
135+
const [tooltipPos, setTooltipPos] = useState<{ x: number; y: number } | null>(
136+
null,
137+
);
136138

137139
return (
138140
<button
@@ -209,7 +211,13 @@ const GridCell = memo(function GridCell({
209211
createPortal(
210212
<div
211213
className="px-3 py-2 bg-base-100 text-base-content text-sm rounded-lg shadow-lg whitespace-nowrap pointer-events-none border border-base-300"
212-
style={{ position: "fixed", left: tooltipPos.x, top: tooltipPos.y - 8, transform: "translate(-50%, -100%)", zIndex: 9999 }}
214+
style={{
215+
position: "fixed",
216+
left: tooltipPos.x,
217+
top: tooltipPos.y - 8,
218+
transform: "translate(-50%, -100%)",
219+
zIndex: 9999,
220+
}}
213221
>
214222
{value !== null && value !== undefined
215223
? `${qid}: ${value.toFixed(4)}${stddev != null ? ` ± ${stddev.toFixed(4)}` : ""} ${unit}`

0 commit comments

Comments
 (0)