🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(comments): always show submit comment button (#13899)
Nimarf0e96f0907f8
diff --git a/web/src/features/comments/CommentDrawerButton.tsx b/web/src/features/comments/CommentDrawerButton.tsxindex e1fa7e7b8c..5a09f53e51 100644--- a/web/src/features/comments/CommentDrawerButton.tsx+++ b/web/src/features/comments/CommentDrawerButton.tsx@@ -180,7 +180,10 @@ export function CommentDrawerButton({)}</Button></DrawerTrigger>- <DrawerContent overlayClassName="bg-primary/10">+ <DrawerContent+ overlayClassName="bg-primary/10"+ className="h-screen-with-banner max-h-screen-with-banner overflow-hidden"+ ><divclassName="mx-auto flex h-full w-full flex-col overflow-hidden focus:ring-0 focus:outline-hidden focus-visible:ring-0 focus-visible:outline-hidden md:max-h-full"tabIndex={-1}@@ -197,7 +200,10 @@ export function CommentDrawerButton({<Header title="Comments"></Header></DrawerTitle></DrawerHeader>- <div data-vaul-no-drag className="min-h-0 flex-1 px-2 pt-2">+ <div+ data-vaul-no-drag+ className="min-h-0 flex-1 overflow-hidden px-2 py-2"+ ><CommentListprojectId={projectId}objectId={objectId}diff --git a/web/src/features/comments/CommentList.tsx b/web/src/features/comments/CommentList.tsxindex 2b4c5322b5..d3db403c95 100644--- a/web/src/features/comments/CommentList.tsx+++ b/web/src/features/comments/CommentList.tsx@@ -490,7 +490,7 @@ export function CommentList({<divclassName={cn(cardView && "rounded-md border",- "flex h-full min-h-0 flex-col",+ "flex h-full min-h-0 flex-col overflow-hidden",className,)}>@@ -499,7 +499,7 @@ export function CommentList({Comments ({comments.data?.length ?? 0})</div>)}- <div className="flex min-h-0 flex-1 flex-col">+ <div className="flex min-h-0 flex-1 flex-col overflow-hidden">{!cardView && (<div className="shrink-0 border-b"><div className="flex items-center justify-between gap-2 px-2 py-1.5">@@ -697,13 +697,13 @@ export function CommentList({</div>{hasWriteAccess && (- <>- <div className="text-muted-foreground relative mt-2 mr-4 ml-2.5 flex flex-row items-center justify-between text-xs">+ <div className="bg-background shrink-0 px-2 pt-2 pb-[calc(0.5rem+env(safe-area-inset-bottom,0px))]">+ <div className="text-muted-foreground relative flex flex-row items-center justify-between text-xs"><span className="sr-only">New comment</span><span></span><span>Markdown and @-mentions support</span></div>- <div className="border-border/60 relative mt-0.5 mr-3 mb-2 ml-2 min-h-[70px] shrink-0 rounded-lg border pt-1">+ <div className="border-border/60 relative mt-0.5 min-h-[70px] rounded-lg border pt-1">{/* Visually hidden header for accessibility */}<Form {...form}>@@ -803,7 +803,7 @@ export function CommentList({</form></Form></div>- </>+ </div>)}</div></div>