From dbf3ee48993c949c7b6d4a0a872a4eec0c57711f Mon Sep 17 00:00:00 2001 From: Mikyo King Date: Tue, 30 Jul 2024 16:37:33 -0600 Subject: [PATCH] feat(annotations): default collapse annotation explanations (#4081) --- app/src/pages/trace/SpanAnnotationForm.tsx | 48 +++++++++++++--------- 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/app/src/pages/trace/SpanAnnotationForm.tsx b/app/src/pages/trace/SpanAnnotationForm.tsx index de49329d8b..4a3222b7f8 100644 --- a/app/src/pages/trace/SpanAnnotationForm.tsx +++ b/app/src/pages/trace/SpanAnnotationForm.tsx @@ -11,6 +11,10 @@ export type CreateAnnotationInput = { explanation?: string | null; }; +const detailsCSS = css` + color: var(--ac-global-text-color-900); + font-size: 12px; +`; export type SpanAnnotationFormProps = { /** * The initial data to populate the form with @@ -69,6 +73,7 @@ export function SpanAnnotationForm(props: SpanAnnotationFormProps) { [onSubmit, setError] ); + const defaultDetailsCollapsed = isReadOnly; return (
@@ -130,26 +135,31 @@ export function SpanAnnotationForm(props: SpanAnnotationFormProps) { )} /> - ( -