Skip to content

Commit 071e8f8

Browse files
authored
Fix multi-PVM visual glitch (#243)
1 parent 7810d7c commit 071e8f8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/components/MemoryPreview/index.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,15 @@ const MemoryCell = ({
7171
<TooltipProvider>
7272
<Tooltip delayDuration={0}>
7373
<TooltipTrigger asChild>
74-
<span>{numeralSystem ? "??" : "???"}</span>
74+
<span
75+
className="font-mono"
76+
dangerouslySetInnerHTML={{
77+
__html: numeralSystem
78+
? "&quest;&#8288;&quest;&#8288;"
79+
: "&quest;&#8288;&quest;&#8288;&quest;&#8288;",
80+
// This is a fix for ?? : ??? because ? adds a break after which causes the whole line to break into two lines
81+
}}
82+
/>
7583
</TooltipTrigger>
7684

7785
<TooltipPortal>

0 commit comments

Comments
 (0)