Nachrichten: Leerraum auf Mobile fix - flex statt berechneter Höhe
This commit is contained in:
@@ -1660,7 +1660,14 @@ export default function App() {
|
||||
const activeTool = TOOLS.find(t=>t.id===active);
|
||||
|
||||
// Mobile padding bottom für fixed nav
|
||||
const mainStyle = { flex:1, overflowY:'auto', ...(mobile ? { paddingBottom: active==='nachrichten' ? 0 : 'calc(56px + env(safe-area-inset-bottom, 0px))' } : {}) };
|
||||
const isNachrichten = active === 'nachrichten';
|
||||
const mainStyle = {
|
||||
flex:1,
|
||||
overflowY: (mobile && isNachrichten) ? 'hidden' : 'auto',
|
||||
display: (mobile && isNachrichten) ? 'flex' : undefined,
|
||||
flexDirection: (mobile && isNachrichten) ? 'column' : undefined,
|
||||
...(mobile && !isNachrichten ? { paddingBottom:'calc(56px + env(safe-area-inset-bottom, 0px))' } : {}),
|
||||
};
|
||||
|
||||
return(
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user