perf:textarea auto height (#2967)

* perf:textarea auto height

* optimize editor height & fix variable label split
This commit is contained in:
heheer
2024-10-22 18:33:02 +08:00
committed by shilin66
parent 90dcb35b40
commit f8a45a63bb
11 changed files with 100 additions and 46 deletions

View File

@@ -11,7 +11,9 @@ export default function VariableLabel({
nodeAvatar: string;
}) {
const { t } = useTranslation();
const [parentLabel, childLabel] = variableLabel.split('.');
// avoid including '.' in the variable name.
const [parentLabel, ...childLabels] = variableLabel.split('.');
const childLabel = childLabels.join('.');
return (
<>