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:
anovazzi1 2024-12-09 12:44:32 -03:00 committed by GitHub
commit c6ddb2905f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -109,7 +109,7 @@ export default function NodeDescription({
}
}}
/>
{charLimit && (
{charLimit && (nodeDescription?.length ?? 0) >= charLimit - 100 && (
<div
className={cn(
"pt-1 text-left text-[13px]",

View file

@ -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",