Skip to content

Commit

Permalink
refines AI generation label in NodesLibrary and adjusts Comment edito…
Browse files Browse the repository at this point in the history
…r styling (#143)
  • Loading branch information
GabiGrin authored Aug 30, 2024
1 parent 98567ac commit 2f44ce7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const NodesLibrary: React.FC<NodesLibraryProps> = memo((props) => {
>
<div className="group-item-inner">
<InstanceIcon icon="fa-solid fa-wand-magic-sparkles" />
Generate using AI
Generate Node using AI
</div>
</Tooltip>
</div>
Expand Down
2 changes: 1 addition & 1 deletion stdlib/src/Misc/Comment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const CommentEditor: MacroEditorComp<CommentConfig> = ({
onChange={(e) => setContent(e.target.value)}
placeholder="Enter your comment here (HTML supported)"
rows={10}
style={{ width: "100%" }}
style={{ width: "100%", padding: "8px 6px" }}
/>
<Callout intent="primary" icon={null}>
HTML formatting is supported
Expand Down
6 changes: 5 additions & 1 deletion stdlib/src/nodes-library-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function getUnresolvedNodesLibraryData() {
groups: [
{
title: "Values & Custom Code",
nodes: [InlineValue, CodeExpression, Comment],
nodes: [InlineValue, CodeExpression],
},
{
title: "Control Flow",
Expand All @@ -45,6 +45,10 @@ export function getUnresolvedNodesLibraryData() {
title: "Timing",
nodes: [Delay, Throttle, Debounce, Interval],
},
{
title: "Misc",
nodes: [Comment],
},
],
};
}

0 comments on commit 2f44ce7

Please sign in to comment.