Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(ui): ensure table footer is fixed on the bottom of the page (#3354)

marliessophie62c413faf5d4
diff --git a/web/src/components/layouts/full-screen-page.tsx b/web/src/components/layouts/full-screen-page.tsx
index 0e74d1334c..77f2939103 100644
--- a/web/src/components/layouts/full-screen-page.tsx
+++ b/web/src/components/layouts/full-screen-page.tsx
@@ -4,14 +4,21 @@ export const FullScreenPage: React.FC<
React.PropsWithChildren<{
mobile?: boolean;
className?: string;
- customHeight?: string;
+ lgHeight?: string;
+ mobileHeight?: string;
}>
-> = ({ children, mobile = true, className, customHeight = "1.5rem" }) => {
+> = ({
+ children,
+ mobile = true,
+ className,
+ lgHeight = "lg:h-[calc(100dvh-1.5rem)]",
+ mobileHeight = "h-[calc(100dvh-6rem)]",
+}) => {
return (
<div
className={cn(
- `flex flex-col overflow-hidden lg:h-[calc(100dvh-${customHeight})]`,
- mobile ? "h-[calc(100dvh-6rem)]" : `h-[calc(100dvh-${customHeight})]`,
+ `flex flex-col overflow-hidden ${lgHeight}`,
+ mobile && mobileHeight,
className,
)}
>
diff --git a/web/src/ee/features/evals/components/eval-config-detail.tsx b/web/src/ee/features/evals/components/eval-config-detail.tsx
index 524dab230a..38c07226bc 100644
--- a/web/src/ee/features/evals/components/eval-config-detail.tsx
+++ b/web/src/ee/features/evals/components/eval-config-detail.tsx
@@ -111,7 +111,10 @@ export const EvalConfigDetail = () => {
/>
</TabsContent>
<TabsContent value="logs">
- <FullScreenPage customHeight="15rem" mobile={false}>
+ <FullScreenPage
+ lgHeight="lg:h-[calc(100dvh-13rem)]"
+ mobileHeight="h-[calc(100dvh-17rem)]"
+ >
<EvalLogTable
projectId={projectId}
jobConfigurationId={existingEvalConfig.id}