Merge pull request #3866 from tylershuster/sidebar-scrollbar

fixes https://github.com/urbit/landscape/issues/132
This commit is contained in:
matildepark 2020-11-03 13:04:32 -05:00 committed by GitHub
commit 31b7c61d9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,14 @@ import { SidebarList } from "./SidebarList";
import { SidebarInvite } from './SidebarInvite';
import { roleForShip } from "~/logic/lib/group";
const ScrollbarLessCol = styled(Col)`
scrollbar-width: none !important;
::-webkit-scrollbar {
display: none;
}
`;
interface SidebarProps {
contacts: Rolodex;
@ -98,7 +106,7 @@ export function Sidebar(props: SidebarProps) {
const isAdmin = (role === "admin") || (workspace?.type === 'home');
return (
<Col
<ScrollbarLessCol
display={display}
width="100%"
gridRow="1/2"
@ -161,6 +169,6 @@ export function Sidebar(props: SidebarProps) {
</Box>
</Link>
</Box>
</Col>
</ScrollbarLessCol>
);
}