diff --git a/src/components/connection/connection-table.tsx b/src/components/connection/connection-table.tsx index 3e8ed26a..d792e0d1 100644 --- a/src/components/connection/connection-table.tsx +++ b/src/components/connection/connection-table.tsx @@ -115,9 +115,6 @@ export const ConnectionTable = (props: Props) => { sx={{ border: "none", "div:focus": { outline: "none !important" }, - "& div[aria-rowindex]": { - backgroundColor: `${backgroundColor} !important`, - }, }} columnVisibilityModel={columnVisible} onColumnVisibilityModelChange={(e) => setColumnVisible(e)} diff --git a/src/pages/connections.tsx b/src/pages/connections.tsx index 9060ff07..762edf0f 100644 --- a/src/pages/connections.tsx +++ b/src/pages/connections.tsx @@ -139,7 +139,15 @@ const ConnectionsPage = () => { {t("Connections")}} - contentStyle={{ height: "100%" }} + contentStyle={{ + height: "100%", + display: "flex", + flexDirection: "column", + overflow: "auto", + // margin: "0 10px", + // backgroundColor: isDark ? "#282a36" : "#ffffff", + borderRadius: "8px", + }} header={ @@ -185,6 +193,10 @@ const ConnectionsPage = () => { display: "flex", alignItems: "center", userSelect: "text", + // backgroundColor: isDark ? "#282a36" : "#ffffff", + position: "sticky", + top: 0, + zIndex: 2, }} > {!isTableLayout && ( @@ -202,34 +214,29 @@ const ConnectionsPage = () => { setMatch(() => match)} /> - - {filterConn.length === 0 ? ( - - ) : isTableLayout ? ( - detailRef.current?.open(detail)} - /> - ) : ( - ( - detailRef.current?.open(item)} - /> - )} - /> - )} - + {filterConn.length === 0 ? ( + + ) : isTableLayout ? ( + detailRef.current?.open(detail)} + /> + ) : ( + ( + detailRef.current?.open(item)} + /> + )} + /> + )} ); diff --git a/src/pages/logs.tsx b/src/pages/logs.tsx index c454fd97..80ff6933 100644 --- a/src/pages/logs.tsx +++ b/src/pages/logs.tsx @@ -44,7 +44,12 @@ const LogPage = () => { { /> - - {filterLogs.length > 0 ? ( - ( - - )} - followOutput={"smooth"} - /> - ) : ( - - )} - + {filterLogs.length > 0 ? ( + ( + + )} + followOutput={"smooth"} + /> + ) : ( + + )} ); }; diff --git a/src/pages/profiles.tsx b/src/pages/profiles.tsx index 28a2576d..3b146e79 100644 --- a/src/pages/profiles.tsx +++ b/src/pages/profiles.tsx @@ -367,20 +367,19 @@ const ProfilePage = () => { {t("New")} - - @@ -412,38 +411,38 @@ const ProfilePage = () => { - - - - - - { - if (prev !== curr) { - await onEnhance(false); - } - }} - /> + + + + + { + if (prev !== curr) { + await onEnhance(false); + } + }} + /> + + + { + if (prev !== curr) { + await onEnhance(false); + } + }} + /> + - - { - if (prev !== curr) { - await onEnhance(false); - } - }} - /> - - + - + { @@ -59,34 +64,27 @@ const RulesPage = () => { setMatch(() => match)} /> - - {rules.length > 0 ? ( - <> - ( - - )} - followOutput={"smooth"} - scrollerRef={(ref) => { - if (ref) ref.addEventListener("scroll", handleScroll); - }} - /> - - - ) : ( - - )} - + {rules.length > 0 ? ( + <> + ( + + )} + followOutput={"smooth"} + scrollerRef={(ref) => { + if (ref) ref.addEventListener("scroll", handleScroll); + }} + /> + + + ) : ( + + )} ); };