Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21913ba053 | ||
|
|
eeed7dfa5e | ||
|
|
14eac9f1c5 | ||
|
|
84f7a6e512 | ||
|
|
c1b830e2da | ||
|
|
734ebd3dfd | ||
|
|
ff79c41195 | ||
|
|
7ed0b3dc92 |
@@ -38,6 +38,7 @@ interface TabLogsProps {
|
|||||||
|
|
||||||
const SCROLL_PIN_THRESHOLD_PX = 8;
|
const SCROLL_PIN_THRESHOLD_PX = 8;
|
||||||
const TAIL_POLL_MS = 10_000;
|
const TAIL_POLL_MS = 10_000;
|
||||||
|
const SCROLLBAR_SIZE = 14;
|
||||||
|
|
||||||
const isScrolledToBottom = (el: HTMLElement) =>
|
const isScrolledToBottom = (el: HTMLElement) =>
|
||||||
el.scrollHeight - el.scrollTop - el.clientHeight <= SCROLL_PIN_THRESHOLD_PX;
|
el.scrollHeight - el.scrollTop - el.clientHeight <= SCROLL_PIN_THRESHOLD_PX;
|
||||||
@@ -213,7 +214,25 @@ export const TabLogs = ({ monitorId, containerName, enabled }: TabLogsProps) =>
|
|||||||
maxHeight="50vh"
|
maxHeight="50vh"
|
||||||
overflow="auto"
|
overflow="auto"
|
||||||
padding={LAYOUT.MD}
|
padding={LAYOUT.MD}
|
||||||
sx={{ overflowAnchor: "none" }}
|
sx={{
|
||||||
|
overflowAnchor: "none",
|
||||||
|
scrollbarWidth: "auto",
|
||||||
|
scrollbarColor: "#11715b rgba(0,0,0,0.15)",
|
||||||
|
"&::-webkit-scrollbar": {
|
||||||
|
display: "block",
|
||||||
|
width: `${SCROLLBAR_SIZE}px`,
|
||||||
|
height: `${SCROLLBAR_SIZE}px`,
|
||||||
|
},
|
||||||
|
"&::-webkit-scrollbar-track": {
|
||||||
|
background: "rgba(0,0,0,0.15)",
|
||||||
|
borderRadius: "2px",
|
||||||
|
},
|
||||||
|
"&::-webkit-scrollbar-thumb": {
|
||||||
|
background: "#11715b",
|
||||||
|
borderRadius: "2px",
|
||||||
|
},
|
||||||
|
"&::-webkit-scrollbar-button": { display: "none" },
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{rows.length > 0 && (
|
{rows.length > 0 && (
|
||||||
<Stack
|
<Stack
|
||||||
|
|||||||
Reference in new issue
Block a user