Compact form for plain text nodes.

This commit is contained in:
Tom Alexander 2024-01-27 22:04:22 -05:00
parent 04b79631d7
commit d73f344dd0
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 18 additions and 1 deletions

View File

@ -47,7 +47,7 @@
overflow: hidden;
> span:first-child {
font-size: 1.3rem;
font-size: 1.1rem;
font-weight: 700;
white-space: nowrap;
}

View File

@ -123,6 +123,23 @@ const OrgAstNode = (props: {
),
);
if (props.node["ast-node"] === "plain-text") {
return (
<div className={nodeClassName}>
<div
className={styles.OrgAstNodeType}
onClick={selectNode}
onMouseEnter={hoverNode}
onMouseLeave={endHoverNode}
title={selfSource}
>
<span>{props.node["ast-node"]}</span>
<span>{selfSource}</span>
</div>
</div>
);
}
return (
<div className={nodeClassName}>
<div