mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-08 22:21:07 +00:00
Fix biome lint: use editorHeight variable and fix formatting
The editorHeight variable was defined but never used. Now it's applied to the TextEditor container div. Also fixed formatting to match biome expectations. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
55b7b03ad1
commit
4873082d7c
1 changed files with 7 additions and 8 deletions
|
|
@ -81,11 +81,10 @@ export function QuickNoteCard({
|
|||
|
||||
const canSave = draft.trim().length > 0 && !isSaving
|
||||
const hasDraft = draft.trim().length > 0
|
||||
const editorHeight =
|
||||
isExpanded
|
||||
? "min-h-[min(58dvh,520px)] sm:min-h-[min(54vh,560px)]"
|
||||
: hasDraft
|
||||
? "min-h-[188px]"
|
||||
const editorHeight = isExpanded
|
||||
? "min-h-[min(58dvh,520px)] sm:min-h-[min(54vh,560px)]"
|
||||
: hasDraft
|
||||
? "min-h-[188px]"
|
||||
: "min-h-[120px]"
|
||||
|
||||
return (
|
||||
|
|
@ -100,8 +99,7 @@ export function QuickNoteCard({
|
|||
<div
|
||||
className={cn(
|
||||
"relative w-full rounded-[22px] bg-[#1B1F24] p-1 transition-[box-shadow,transform,width] duration-200",
|
||||
isExpanded &&
|
||||
"z-[70] w-[min(calc(100vw-1.5rem),640px)] scale-[1.01]",
|
||||
isExpanded && "z-[70] w-[min(calc(100vw-1.5rem),640px)] scale-[1.01]",
|
||||
)}
|
||||
style={{
|
||||
boxShadow: isExpanded
|
||||
|
|
@ -134,8 +132,9 @@ export function QuickNoteCard({
|
|||
<div
|
||||
className={cn(
|
||||
dmSansClassName(),
|
||||
"min-h-0 w-full flex-1 overflow-y-auto pr-5 text-white disabled:opacity-50",
|
||||
"w-full flex-1 overflow-y-auto pr-5 text-white disabled:opacity-50",
|
||||
"[&_.ProseMirror]:text-[12px] [&_.ProseMirror]:leading-normal [&_.ProseMirror_p.is-editor-empty:first-child::before]:text-[#737373]",
|
||||
editorHeight,
|
||||
)}
|
||||
aria-disabled={isSaving}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue