diff --git a/web/ui/mantine-ui/src/App.tsx b/web/ui/mantine-ui/src/App.tsx
index ae8e08899..48a670cd6 100644
--- a/web/ui/mantine-ui/src/App.tsx
+++ b/web/ui/mantine-ui/src/App.tsx
@@ -7,6 +7,7 @@ import PrometheusLogo from "./images/prometheus-logo.svg";
import {
ActionIcon,
+ Affix,
AppShell,
Box,
Burger,
@@ -16,12 +17,14 @@ import {
Menu,
Skeleton,
Text,
+ Transition,
createTheme,
rem,
} from "@mantine/core";
-import { useDisclosure } from "@mantine/hooks";
+import { useDisclosure, useWindowScroll } from "@mantine/hooks";
import {
IconAdjustments,
+ IconArrowUp,
IconBellFilled,
IconChevronDown,
IconChevronRight,
@@ -169,6 +172,7 @@ const navLinkIconSize = 15;
const navLinkXPadding = "md";
function App() {
+ const [scroll, scrollTo] = useWindowScroll();
const [opened, { toggle }] = useDisclosure();
const { agentMode } = useContext(SettingsContext);
@@ -373,6 +377,23 @@ function App() {
+
+ 0}>
+ {(transitionStyles) => (
+
+ }
+ style={transitionStyles}
+ onClick={() => scrollTo({ y: 0 })}
+ >
+ Scroll to top
+
+ )}
+
+
{/* */}