mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-25 12:25:33 +08:00
Refactor: update NodeDescription component to conditionally render character limit message (#5037)
* Refactor: Update NodeDescription component to conditionally render a character limit message * [autofix.ci] apply automated fixes * Refactor: update NoteNode inputClassName to remove unnecessary ring and focus styles (#5038) refactor: Update NoteNode inputClassName to remove unnecessary ring and focus styles Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
This commit is contained in:
@ -109,7 +109,7 @@ export default function NodeDescription({
|
||||
}
|
||||
}}
|
||||
/>
|
||||
{charLimit && (
|
||||
{charLimit && (nodeDescription?.length ?? 0) >= charLimit - 100 && (
|
||||
<div
|
||||
className={cn(
|
||||
"pt-1 text-left text-[13px]",
|
||||
|
||||
@ -85,7 +85,7 @@ function NoteNode({
|
||||
>
|
||||
<NodeDescription
|
||||
inputClassName={cn(
|
||||
"border-0 ring-transparent resize-none shadow-none rounded-sm h-full w-full",
|
||||
"border-0 ring-0 focus:ring-0 resize-none shadow-none rounded-sm h-full w-full",
|
||||
COLOR_OPTIONS[bgColor] === null
|
||||
? ""
|
||||
: "dark:!ring-background dark:text-background",
|
||||
|
||||
Reference in New Issue
Block a user