Compact form for plain text nodes.
This commit is contained in:
parent
04b79631d7
commit
d73f344dd0
@ -47,7 +47,7 @@
|
||||
overflow: hidden;
|
||||
|
||||
> span:first-child {
|
||||
font-size: 1.3rem;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 700;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user