A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: use custom bottom scrollbar in mobile mode (#1389)
Muhammad Ali503b5922e92f
diff --git a/apps/web/src/app.js b/apps/web/src/app.jsindex 1c3646e9d..fd3d19c39 100644--- a/apps/web/src/app.js+++ b/apps/web/src/app.js@@ -33,6 +33,7 @@ import { ViewLoader } from "./components/loaders/view-loader";import NavigationMenu from "./components/navigation-menu";import StatusBar from "./components/status-bar";import { EditorLoader } from "./components/loaders/editor-loader";+import { FlexScrollContainer } from "./components/scroll-container";const GlobalMenuWrapper = React.lazy(() =>import("./components/global-menu-wrapper")@@ -191,17 +192,19 @@ function DesktopAppContents({ isAppLoaded, show, setShow }) {function MobileAppContents({ isAppLoaded }) {return (- <Flex+ <FlexScrollContainerid="slider"- variant="rowFill"- sx={{+ style={{+ display: "flex",+ flexDirection: "row",overflowY: "hidden",scrollSnapType: "x mandatory",scrollBehavior: "smooth",WebkitOverflowScrolling: "touch",scrollSnapStop: "always",overscrollBehavior: "contain",- overflowX: "auto"+ overflowX: "auto",+ flex: 1}}><Flex@@ -261,6 +264,6 @@ function MobileAppContents({ isAppLoaded }) {condition={isAppLoaded}/></Flex>- </Flex>+ </FlexScrollContainer>);}diff --git a/apps/web/src/components/scroll-container/index.tsx b/apps/web/src/components/scroll-container/index.tsxindex 8f44f631a..3c1ddf116 100644--- a/apps/web/src/components/scroll-container/index.tsx+++ b/apps/web/src/components/scroll-container/index.tsx@@ -50,17 +50,19 @@ const ScrollContainer = ({export default ScrollContainer;type FlexScrollContainerProps = {+ id?: string;className?: string;style?: React.CSSProperties;};export function FlexScrollContainer({+ id,children,style,className}: PropsWithChildren<FlexScrollContainerProps>) {return (- <MacScrollbar className={className} style={style} minThumbSize={40}>+ <MacScrollbar id={id} className={className} style={style} minThumbSize={40}>{children}</MacScrollbar>);