diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 4823c94..1ea906c 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -1663,12 +1663,8 @@ export default function App() { const isNachrichten = active === 'nachrichten'; const mainStyle = { flex:1, - overflowY: (mobile && isNachrichten) ? 'hidden' : 'auto', - ...(mobile && isNachrichten ? { - height: 'calc(100dvh - 56px - env(safe-area-inset-bottom, 0px))', - display:'flex', flexDirection:'column', - } : {}), - ...(mobile && !isNachrichten ? { paddingBottom:'calc(56px + env(safe-area-inset-bottom, 0px))' } : {}), + overflowY: 'auto', + ...(mobile ? { paddingBottom:'calc(56px + env(safe-area-inset-bottom, 0px))' } : {}), }; return( diff --git a/frontend/src/tools/nachrichten.jsx b/frontend/src/tools/nachrichten.jsx index bb25d87..6fa59a9 100644 --- a/frontend/src/tools/nachrichten.jsx +++ b/frontend/src/tools/nachrichten.jsx @@ -243,9 +243,19 @@ export default function Nachrichten({ toast, mobile }) { ); + const mobileStyle = mobile ? { + position: 'fixed', + top: 0, + left: 0, + right: 0, + bottom: 'calc(56px + env(safe-area-inset-bottom, 0px))', + zIndex: 10, + } : { + height: '100vh', + }; + return ( -