F: Improve typography

This commit is contained in:
Ivan 2025-07-02 13:13:01 +03:00
parent 9b6a014fb3
commit 1ee3e9ef4f
3 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@ export const GlobalTooltips = () => {
id={globalIDs.tooltip} id={globalIDs.tooltip}
layer='z-topmost' layer='z-topmost'
place='right-start' place='right-start'
className='mt-8 max-w-80 break-words rounded-lg!' className='mt-8 max-w-80 break-words rounded-lg! select-none'
/> />
<Tooltip <Tooltip
float float

View File

@ -20,9 +20,9 @@ interface MGraphNodeInternal {
export function MGraphNode(node: MGraphNodeInternal) { export function MGraphNode(node: MGraphNodeInternal) {
const tooltipText = const tooltipText =
`Ступень ${node.data.text}` + `<span class="font-math">${node.data.text}</span>` +
'<br/>' + '<br/>' +
(node.data.annotations.length === 0 ? '' : `Конституенты: ${node.data.annotations.join(' ')}`); (node.data.annotations.length === 0 ? '' : `<b>Конституенты</b> ${node.data.annotations.join(' ')}`);
return ( return (
<> <>

View File

@ -23,18 +23,18 @@ export function ToolbarRSExpression({ className, disabled, showTypeGraph, showAS
<div className={cn('cc-icons', className)}> <div className={cn('cc-icons', className)}>
{!disabled || isProcessing ? ( {!disabled || isProcessing ? (
<MiniButton <MiniButton
title='Отображение специальной клавиатуры' title='Символьная клавиатура'
icon={<IconShowKeyboard value={showControls} size='1.25rem' className='hover:text-primary' />} icon={<IconShowKeyboard value={showControls} size='1.25rem' className='hover:text-primary' />}
onClick={toggleControls} onClick={toggleControls}
/> />
) : null} ) : null}
<MiniButton <MiniButton
title='Граф ступеней типизации' title='Структура типизации'
icon={<IconTypeGraph size='1.25rem' className='hover:text-primary' />} icon={<IconTypeGraph size='1.25rem' className='hover:text-primary' />}
onClick={showTypeGraph} onClick={showTypeGraph}
/> />
<MiniButton <MiniButton
title='Дерево разбора выражения' title='Структура выражения'
onClick={showAST} onClick={showAST}
icon={<IconTree size='1.25rem' className='hover:text-primary' />} icon={<IconTree size='1.25rem' className='hover:text-primary' />}
/> />