diff --git a/src/components/Common/ScrollArea/index.tsx b/src/components/Common/ScrollArea/index.tsx index 20a76196..71a9d118 100644 --- a/src/components/Common/ScrollArea/index.tsx +++ b/src/components/Common/ScrollArea/index.tsx @@ -16,7 +16,7 @@ export type ScrollAreaHandles = { scrollToBottom: () => void; } -export const ScrollArea = observer(forwardRef(({ style, className, children, onBottom, disableAnimation = false }, ref) => { +export const ScrollArea = observer(forwardRef(({ style, className, children, onBottom, disableAnimation = true }, ref) => { const scrollRef = useRef(null); const [isAtTop, setIsAtTop] = useState(false); const [isAtBottom, setIsAtBottom] = useState(false); @@ -78,19 +78,19 @@ export const ScrollArea = observer(forwardRef(({ styl ); })) -const styles = ` - .scrollbar-hide { - -ms-overflow-style: none; /* IE and Edge */ - scrollbar-width: none; /* Firefox */ - } +// const styles = ` +// .scrollbar-hide { +// -ms-overflow-style: none; /* IE and Edge */ +// scrollbar-width: none; /* Firefox */ +// } - .scrollbar-hide::-webkit-scrollbar { - display: none; /* Chrome, Safari and Opera */ - } -`; +// .scrollbar-hide::-webkit-scrollbar { +// display: none; /* Chrome, Safari and Opera */ +// } +// `; -if (typeof document !== 'undefined') { - const styleSheet = document.createElement('style'); - styleSheet.textContent = styles; - document.head.appendChild(styleSheet); -} +// if (typeof document !== 'undefined') { +// const styleSheet = document.createElement('style'); +// styleSheet.textContent = styles; +// document.head.appendChild(styleSheet); +// } diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx index cd7d4b4b..d35e88fa 100644 --- a/src/components/Layout/index.tsx +++ b/src/components/Layout/index.tsx @@ -196,7 +196,7 @@ export const CommonLayout = observer(({ {/* backdrop pt-6 -mt-6 to fix the editor tooltip position */} - { }} className="md:contents h-[calc(100%_-_70px)] overflow-y-scroll overflow-x-hidden"> + { }} className="h-[calc(100%_-_70px)] overflow-y-auto overflow-x-hidden">
{children}
diff --git a/src/pages/analytics.tsx b/src/pages/analytics.tsx index e25da47a..2a5d967f 100644 --- a/src/pages/analytics.tsx +++ b/src/pages/analytics.tsx @@ -10,6 +10,7 @@ import { TagDistributionChart } from "@/components/BlinkoAnalytics/TagDistributi import dayjs from "dayjs" import { Dropdown, DropdownTrigger, DropdownMenu, DropdownItem, Button } from "@nextui-org/react" import { Icon } from "@iconify/react" +import { ScrollArea } from '@/components/Common/ScrollArea' const Analytics = observer(() => { const analyticsStore = RootStore.Get(AnalyticsStore) @@ -38,8 +39,8 @@ const Analytics = observer(() => {
- - { @@ -59,7 +60,7 @@ const Analytics = observer(() => { }} > {last12Months.map((month) => ( - @@ -81,7 +82,6 @@ const Analytics = observer(() => { {stats?.tagStats && stats.tagStats.length > 0 && ( )} -
) }) diff --git a/src/pages/settings.tsx b/src/pages/settings.tsx index 2e206f79..51de9282 100644 --- a/src/pages/settings.tsx +++ b/src/pages/settings.tsx @@ -185,7 +185,7 @@ const Page = observer(() => { }); }; - return
+ return
{showLeftArrow && ( @@ -236,7 +236,7 @@ const Page = observer(() => { )}
- { }} className="flex-1 md:mb-[70px]"> + { }} className="flex-1">
{getCurrentComponent()}