mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
Fix selection line breaks layout
This commit is contained in:
parent
a5ae20e325
commit
012b2cc39f
|
@ -61,7 +61,7 @@ function DlgShowAST({ hideWindow, syntaxTree, expression }: DlgShowASTProps) {
|
|||
<div className='w-full text-lg text-center'>
|
||||
{!hoverNode && expression}
|
||||
{hoverNode &&
|
||||
<div className='flex justify-center whitespace-pre'>
|
||||
<div>
|
||||
<span>{expression.slice(0, hoverNode.start)}</span>
|
||||
<span className='clr-selected'>{expression.slice(hoverNode.start, hoverNode.finish)}</span>
|
||||
<span>{expression.slice(hoverNode.finish)}</span>
|
||||
|
|
Loading…
Reference in New Issue
Block a user