🪢 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
style(ui): align styling of comment button on sessions page and adjust dashboard and session overflow for mobile (#2985)
marliessophie0fe217693068
diff --git a/web/src/components/session/index.tsx b/web/src/components/session/index.tsxindex a42120714e..7054554192 100644--- a/web/src/components/session/index.tsx+++ b/web/src/components/session/index.tsx@@ -99,7 +99,7 @@ export const SessionPage: React.FC<{/>,<CommentDrawerButtonkey="comment"- size="sm"+ variant="outline"projectId={projectId}objectId={sessionId}objectType="SESSION"@@ -196,7 +196,7 @@ const SessionIO = ({},);return (- <div className="col-span-2 flex flex-col gap-2 p-0">+ <div className="col-span-2 grid grid-flow-row gap-2 p-0">{!trace.data ? (<JsonSkeletonclassName="h-full w-full overflow-hidden px-2 py-1"diff --git a/web/src/features/comments/CommentCountIcon.tsx b/web/src/features/comments/CommentCountIcon.tsxindex 3550938f32..3796ee1d77 100644--- a/web/src/features/comments/CommentCountIcon.tsx+++ b/web/src/features/comments/CommentCountIcon.tsx@@ -6,10 +6,7 @@ export function CommentCountIcon({ count }: { count?: number }) {return (<span className="relative mr-1 text-xs"><MessageCircleMore className="h-5 w-5" />- <span- className="absolute -top-0.5 left-3 flex max-h-[1rem] min-w-[1rem] items-center justify-center rounded-full border border-muted-foreground bg-accent-light-blue px-0.5"- style={{ fontSize: "0.6rem" }}- >+ <span className="absolute -top-0.5 left-3 flex max-h-[1rem] min-w-[1rem] items-center justify-center rounded-full border border-muted-foreground bg-accent-light-blue px-0.5 text-[9px]">{count > 99 ? "99+" : count}</span></span>diff --git a/web/src/features/comments/CommentDrawerButton.tsx b/web/src/features/comments/CommentDrawerButton.tsxindex 0616a84262..7caaebeb2d 100644--- a/web/src/features/comments/CommentDrawerButton.tsx+++ b/web/src/features/comments/CommentDrawerButton.tsx@@ -18,13 +18,13 @@ export function CommentDrawerButton({objectId,objectType,count,- size = "icon",+ variant = "secondary",}: {projectId: string;objectId: string;objectType: CommentObjectType;count?: number;- size?: "icon" | "sm";+ variant?: "secondary" | "outline";}) {const hasReadAccess = useHasProjectAccess({projectId,@@ -45,7 +45,7 @@ export function CommentDrawerButton({return (<Drawer><DrawerTrigger asChild>- <Button type="button" variant="secondary" size={size}>+ <Button type="button" variant={variant} size="icon">{!!count ? (<CommentCountIcon count={count} />) : (diff --git a/web/src/features/dashboard/components/score-analytics/ScoreAnalytics.tsx b/web/src/features/dashboard/components/score-analytics/ScoreAnalytics.tsxindex 798ff68949..6f5c444baf 100644--- a/web/src/features/dashboard/components/score-analytics/ScoreAnalytics.tsx+++ b/web/src/features/dashboard/components/score-analytics/ScoreAnalytics.tsx@@ -108,7 +108,7 @@ export function ScoreAnalytics(props: {return (<div key={scoreKey}><div>{`${getScoreDataTypeIcon(dataType)} ${name} (${source.toLowerCase()})`}</div>- <div className="mt-2 grid grid-cols-2 gap-4">+ <div className="mt-2 grid gap-2 lg:grid-cols-2 lg:gap-4">{/* aggregate */}<div><div className="mb-2 text-sm text-muted-foreground">