Merge pull request #773 from lethemanh/772-fix-scroll-issue-on-mobile

#772 fix scroll issue on mobile
This commit is contained in:
lethemanh
2026-04-13 14:55:15 +07:00
committed by GitHub
5 changed files with 29 additions and 2 deletions
+4
View File
@@ -3,6 +3,10 @@
font-family "Roboto"
height 100vh
&--mobile
height 100dvh
overflow-y hidden
.App-header
background-color #282c34
min-height 100vh
+2 -1
View File
@@ -1,3 +1,4 @@
import cx from 'classnames'
import { useAppDispatch, useAppSelector } from '@/app/hooks'
import SettingsPage from '@/features/Settings/SettingsPage'
import { useScreenSizeDetection } from '@/useScreenSizeDetection'
@@ -106,7 +107,7 @@ export default function CalendarLayout(): JSX.Element {
}
return (
<div className="App">
<div className={cx('App ', { 'App--mobile': isMobile })}>
{!isInIframe && <Menubar {...menubarProps} />}
{(view === 'calendar' || view === 'search') && (
<CalendarApp
+5
View File
@@ -42,6 +42,11 @@
min-height 60px
background-color #fff
&--mobile
position sticky
top 0
margin-bottom 8px
.menubar-item
display flex
align-items center
+1 -1
View File
@@ -48,7 +48,7 @@ export const MobileMenubar: React.FC<MobileMenubarProps> = ({
return (
<>
<header className="menubar">
<header className="menubar menubar--mobile">
<div className="left-menu">
<IconButton
onClick={onOpenSidebar}
+17
View File
@@ -1,5 +1,22 @@
declare module '*.styl'
declare module 'classnames' {
type ClassValue =
| string
| number
| boolean
| null
| undefined
| ClassArray
| ClassDictionary
interface ClassDictionary {
[id: string]: boolean | undefined | null
}
type ClassArray = ClassValue[]
function classnames(...args: ClassValue[]): string
export = classnames
}
declare module '@linagora/twake-mui' {
export * from '@mui/material'