fix(layout): Anpassung des Layouts für Laptop-Auflösung (1348x635)

- Header und Footer mit festen Höhen (13vh und 8vh) versehen.
- Inhaltsbereich dynamisch skaliert mit calc(100vh - Header - Footer).
- Navigation für volle Höhe des Inhalts angepasst.
- Alle Elemente ohne Scrollen auf Laptop-Auflösung sichtbar gemacht.
This commit is contained in:
ISA
2025-01-23 07:29:41 +01:00
parent 801b2f55da
commit b2eb899793
5 changed files with 6 additions and 6 deletions

View File

@@ -52,7 +52,7 @@ function Footer() {
}, [showSlider]);
return (
<footer className="relative bg-gray-300 p-4 xl:p-2 2xl:p-4 overflow-hidden text-black">
<footer className="relative bg-gray-300 p-4 xl:p-2 2xl:p-4 overflow-hidden text-black laptop:h-[7vh] ">
<div className="container mx-auto flex justify-between">
<div className="flex flex-row space-x-2">
<Icon

View File

@@ -49,7 +49,7 @@ function Header() {
}, [isAdminLoggedIn]);
return (
<header className="bg-gray-300 flex justify-between items-center w-full h-[12vh] sm:h-[11vh] md:h-[12vh] lg:h-[13vh] xl:h-[12vh] relative text-black mb-16 sm:mb-1 md:mb-1 lg:mb-1 xl:mb-1 2xl:mb-12">
<header className="bg-gray-300 flex justify-between items-center w-full h-[13vh] relative text-black ">
<div
className="absolute transform -translate-y-1/2
left-[8%] sm:left-[8%] md:left-[8%] lg:left-[8%] xl:left-[6%]

View File

@@ -26,7 +26,7 @@ function Navigation() {
return (
<aside>
<nav className="w-48 sm:w-12 md:w-28 lg:w-32 xl:w-40 2xl:w-64 flex-shrink-0 mt-32 overflow-hidden">
<nav className="w-48 h-full flex-shrink-0 mt-16">
{menuItems.map((item) => (
<Link href={formatPath(item.path)} key={item.name}>
<div

View File

@@ -38,11 +38,11 @@ function MyApp({ Component, pageProps }) {
return (
<Provider store={store}>
<div className="bg-gray-100 flex flex-col min-h-screen overflow-hidden">
<div className="flex flex-col min-h-screen">
<Header />
<div className="flex flex-grow w-full">
<Navigation className="w-1/5" />
<main className="w-full">
<main className="w-full flex-grow">
{sessionExpired && (
<div className="bg-red-500 text-white p-4 text-center">
Ihre Sitzung ist abgelaufen oder die Verbindung ist

View File

@@ -100,7 +100,7 @@ function Dashboard() {
};
return (
<div className="flex flex-col gap-4 p-4 2xl:h-full xl:h-full laptop:h-[80%] overflow-auto">
<div className="flex flex-col gap-4 p-4 h-[calc(100vh-13vh-8vh)]">
<div className="flex justify-between items-center w-full lg:w-2/3">
<div className="flex justify-between gap-1 ">
<Icon