mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-15 11:22:49 +03:00
- client: 2254 Fix textarea with comments fonts
This commit is contained in:
parent
8afdc049ef
commit
d747185b45
@ -17,7 +17,7 @@ export const getTextareaCommentsHighlight = (
|
|||||||
) => {
|
) => {
|
||||||
const renderLine = (line, idx) => renderHighlightedLine(line, idx, commentLineTokens);
|
const renderLine = (line, idx) => renderHighlightedLine(line, idx, commentLineTokens);
|
||||||
|
|
||||||
return <code className={classnames('text-output', className)} ref={ref}>{lines?.split('\n').map(renderLine)}</code>;
|
return <code className={classnames('text-output font-monospace', className)} ref={ref}>{lines?.split('\n').map(renderLine)}</code>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const syncScroll = (e, ref) => {
|
export const syncScroll = (e, ref) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user