Nachrichten: position:fixed auf Mobile - Header/Input immer sichtbar, kein Leerraum
This commit is contained in:
@@ -1663,12 +1663,8 @@ export default function App() {
|
|||||||
const isNachrichten = active === 'nachrichten';
|
const isNachrichten = active === 'nachrichten';
|
||||||
const mainStyle = {
|
const mainStyle = {
|
||||||
flex:1,
|
flex:1,
|
||||||
overflowY: (mobile && isNachrichten) ? 'hidden' : 'auto',
|
overflowY: 'auto',
|
||||||
...(mobile && isNachrichten ? {
|
...(mobile ? { paddingBottom:'calc(56px + env(safe-area-inset-bottom, 0px))' } : {}),
|
||||||
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))' } : {}),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return(
|
return(
|
||||||
|
|||||||
@@ -243,9 +243,19 @@ export default function Nachrichten({ toast, mobile }) {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
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 (
|
return (
|
||||||
<div style={{ display:'flex', height: mobile ? '100%' : '100vh',
|
<div style={{ display:'flex', overflow:'hidden', background:'#111114', ...mobileStyle }}>
|
||||||
overflow:'hidden', background:'#111114', flex: mobile ? 1 : undefined }}>
|
|
||||||
|
|
||||||
{/* ── Konversationsliste ─────────────────────────────────────────── */}
|
{/* ── Konversationsliste ─────────────────────────────────────────── */}
|
||||||
{showList && (
|
{showList && (
|
||||||
|
|||||||
Reference in New Issue
Block a user