fix(perf): suppress Show raw toggle in bare mode MarkdownViewer
This commit is contained in:
parent
f2231d7dad
commit
bb03a12a48
1 changed files with 2 additions and 2 deletions
|
|
@ -1183,8 +1183,8 @@ export const MarkdownViewer: React.FC<MarkdownViewerProps> = React.memo(function
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Show raw toggle for no-label path */}
|
{/* Show raw toggle for no-label path (skip in bare mode) */}
|
||||||
{!label && (
|
{!label && !bare && (
|
||||||
<div
|
<div
|
||||||
className="flex items-center justify-between px-3 py-1 text-xs"
|
className="flex items-center justify-between px-3 py-1 text-xs"
|
||||||
style={{ color: COLOR_TEXT_MUTED }}
|
style={{ color: COLOR_TEXT_MUTED }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue