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:
parent
2c01cd5195
commit
c6ddb2905f
2 changed files with 2 additions and 2 deletions
|
|
@ -109,7 +109,7 @@ export default function NodeDescription({
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{charLimit && (
|
{charLimit && (nodeDescription?.length ?? 0) >= charLimit - 100 && (
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"pt-1 text-left text-[13px]",
|
"pt-1 text-left text-[13px]",
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ function NoteNode({
|
||||||
>
|
>
|
||||||
<NodeDescription
|
<NodeDescription
|
||||||
inputClassName={cn(
|
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
|
COLOR_OPTIONS[bgColor] === null
|
||||||
? ""
|
? ""
|
||||||
: "dark:!ring-background dark:text-background",
|
: "dark:!ring-background dark:text-background",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue