diff --git a/CHANGELOG.md b/CHANGELOG.md index f3a369d..ec1b98a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Version 0.2.1 + +### Changed + +* Added bottom padding for nav bar on iOS devices (#63) + ## Version 0.2.0 ### Added diff --git a/components/Navigation.tsx b/components/Navigation.tsx index 4bcc6b3..6af3480 100644 --- a/components/Navigation.tsx +++ b/components/Navigation.tsx @@ -7,6 +7,7 @@ import { browserSettingsAtom } from '@/lib/atoms' import { useEffect, useState } from 'react' import AboutModal from './AboutModal' import { HabitIcon, TaskIcon } from '@/lib/constants' +import { useHelpers } from '@/lib/client-helpers' type ViewPort = 'main' | 'mobile' @@ -33,6 +34,7 @@ export default function Navigation({ className, viewPort }: NavigationProps) { const [isMobileView, setIsMobileView] = useState(false) const [browserSettings] = useAtom(browserSettingsAtom) const isTasksView = browserSettings.viewType === 'tasks' + const { isIOS } = useHelpers() useEffect(() => { const handleResize = () => { @@ -52,14 +54,14 @@ export default function Navigation({ className, viewPort }: NavigationProps) { if (viewPort === 'mobile' && isMobileView) { return ( <> -
{/* Add padding at the bottom to prevent content from being hidden */} -