fix: Only show scrollbars on settings table when neccessary

This commit is contained in:
Tom Moor
2024-04-17 19:55:42 -04:00
parent 2d947fb56b
commit 573c372f09
2 changed files with 4 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ import { transparentize } from "polished";
import * as React from "react";
import styled from "styled-components";
import breakpoint from "styled-components-breakpoint";
import { depths, s } from "@shared/styles";
import { depths, hideScrollbars, s } from "@shared/styles";
import { supportsPassiveListener } from "@shared/utils/browser";
import Button from "~/components/Button";
import Fade from "~/components/Fade";
@@ -115,6 +115,8 @@ const Wrapper = styled(Flex)<WrapperProps>`
z-index: ${depths.header};
position: sticky;
background: ${s("background")};
overflow-y: auto;
${hideScrollbars()}
${(props) =>
props.$passThrough