From 20ce7e748753291a1f6952d8704bddd672705293 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Tue, 12 Oct 2021 01:29:40 +0200 Subject: fix: (#102) ugly scrollbars --- components/Sidebar/Link.tsx | 30 +++++++++++++++---- components/Sidebar/Note.tsx | 1 - components/Sidebar/index.tsx | 70 ++++++++++++++++++++++---------------------- 3 files changed, 59 insertions(+), 42 deletions(-) (limited to 'components') diff --git a/components/Sidebar/Link.tsx b/components/Sidebar/Link.tsx index 49fe9cf..97b4189 100644 --- a/components/Sidebar/Link.tsx +++ b/components/Sidebar/Link.tsx @@ -51,6 +51,7 @@ export interface NormalLinkProps { import { hexToRGBA, getThemeColor } from '../../pages/index' import noteStyle from './noteStyle' import { OrgImage } from './OrgImage' +import { Scrollbars } from 'react-custom-scrollbars-2' export const NormalLink = (props: NormalLinkProps) => { const { setSidebarHighlightedNode, setPreviewNode, nodeById, openContextMenu, href, children } = @@ -202,6 +203,7 @@ export const PreviewLink = (props: LinkProps) => { { - - {orgText} - + ( + + )} + > + + {orgText} + + diff --git a/components/Sidebar/Note.tsx b/components/Sidebar/Note.tsx index 37e836d..ec267a3 100644 --- a/components/Sidebar/Note.tsx +++ b/components/Sidebar/Note.tsx @@ -34,7 +34,6 @@ export const Note = (props: NoteProps) => { return ( { nextPreviewNode, }} /> - {/* ( - * - * )} - * > */} - - - - - {/**/} + ( + + )} + > + + + + + -- cgit v1.2.3