From d73f344dd0fbdf2ee796c762b63216a0588f33c6 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 27 Jan 2024 22:04:22 -0500 Subject: [PATCH] Compact form for plain text nodes. --- src/OrgAst.module.css | 2 +- src/OrgAst.tsx | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/OrgAst.module.css b/src/OrgAst.module.css index 2ff6af2..743be33 100644 --- a/src/OrgAst.module.css +++ b/src/OrgAst.module.css @@ -47,7 +47,7 @@ overflow: hidden; > span:first-child { - font-size: 1.3rem; + font-size: 1.1rem; font-weight: 700; white-space: nowrap; } diff --git a/src/OrgAst.tsx b/src/OrgAst.tsx index 5b18c8b..99dc827 100644 --- a/src/OrgAst.tsx +++ b/src/OrgAst.tsx @@ -123,6 +123,23 @@ const OrgAstNode = (props: { ), ); + if (props.node["ast-node"] === "plain-text") { + return ( +
+
+ {props.node["ast-node"]} + {selfSource} +
+
+ ); + } + return (