Skip to content

Commit

Permalink
feat: v1.0.7 & Text block handling
Browse files Browse the repository at this point in the history
  • Loading branch information
surajair committed May 1, 2024
1 parent c4deb46 commit 752d13c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@chaibuilder/runtime",
"private": false,
"version": "0.1.6",
"version": "0.1.7",
"type": "module",
"author": "Suraj Air",
"license": "BSD-3-Clause",
Expand Down
8 changes: 6 additions & 2 deletions src/package/default-blocks/text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ const RawTextBlock = (
},
) => {
if (props.inBuilder) {
return <span {...props.blockProps}>&nbsp;{props.content}&nbsp;</span>;
return (
<span className={"inline-block"} {...props.blockProps}>
{props.content}
</span>
);
}
return ` ${props.content} `;
return `${props.content}`;
};

registerChaiBlock(RawTextBlock, {
Expand Down

0 comments on commit 752d13c

Please sign in to comment.