mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-08 22:21:07 +00:00
fix vorflux bug
This commit is contained in:
parent
7f6b28ab83
commit
8950b0a86a
1 changed files with 13 additions and 7 deletions
|
|
@ -98,9 +98,9 @@ export function QuickNoteCard({
|
|||
)}
|
||||
<div
|
||||
className={cn(
|
||||
"relative w-full rounded-[22px] bg-[#1B1F24] p-1 transition-[box-shadow,transform,width] duration-200",
|
||||
"relative w-full rounded-[22px] bg-[#1B1F24] p-1 transition-[box-shadow,transform] duration-200",
|
||||
isExpanded &&
|
||||
"z-[70] w-[min(calc(100vw-1.5rem),640px)] sm:w-full scale-[1.01]",
|
||||
"fixed left-1/2 top-[calc(env(safe-area-inset-top)+72px)] z-[70] w-[min(calc(100vw-1.5rem),640px)] max-h-[calc(100dvh-96px)] -translate-x-1/2 scale-[1.01] sm:left-[max(1rem,calc((100vw-640px)/2))] sm:translate-x-0",
|
||||
)}
|
||||
style={{
|
||||
boxShadow: isExpanded
|
||||
|
|
@ -111,9 +111,7 @@ export function QuickNoteCard({
|
|||
<div
|
||||
id="quick-note-inner"
|
||||
className={cn(
|
||||
"relative flex flex-col rounded-[18px] bg-[#0B1017] p-3",
|
||||
isExpanded &&
|
||||
"fixed inset-x-3 top-[calc(env(safe-area-inset-top)+72px)] z-[71] max-h-[calc(100dvh-96px)] sm:static sm:inset-auto",
|
||||
"relative flex flex-col rounded-[18px] bg-[#0B1017] p-3 transition-[height,width] duration-200",
|
||||
)}
|
||||
onFocusCapture={() => setIsExpanded(true)}
|
||||
onBlurCapture={handleBlurCapture}
|
||||
|
|
@ -133,12 +131,20 @@ export function QuickNoteCard({
|
|||
<div
|
||||
className={cn(
|
||||
dmSansClassName(),
|
||||
"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]",
|
||||
"relative 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]:hidden [&_.ProseMirror_.is-empty::before]:hidden",
|
||||
editorHeight,
|
||||
)}
|
||||
aria-disabled={isSaving}
|
||||
>
|
||||
{!hasDraft && (
|
||||
<div
|
||||
className="pointer-events-none absolute left-0 top-0 text-[12px] leading-normal text-[#737373]"
|
||||
aria-hidden
|
||||
>
|
||||
Write, paste anything or type "/" for commands...
|
||||
</div>
|
||||
)}
|
||||
<TextEditor
|
||||
content={draft}
|
||||
onContentChange={handleContentChange}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue