Merge pull request #151 from R0m1k3/1.1

Improve layout and remove unnecessary scrollbars from the application
This commit is contained in:
LogiFlow authored and GitHub committed 2025-08-15 12:57:15 +02:00
commit 3ba6506cfc
3 files changed
+16 -19

No files matched your search

+4 -6
View File
@@ -66,7 +66,7 @@ export default function Layout({ children }: LayoutProps) {
return (
<StoreContext.Provider value={{ selectedStoreId, setSelectedStoreId, stores, sidebarCollapsed, setSidebarCollapsed, mobileMenuOpen, setMobileMenuOpen }}>
<div className="layout-container flex h-screen overflow-hidden bg-gray-50">
<div className="layout-container flex bg-gray-50">
{/* Mobile overlay */}
{isMobile && mobileMenuOpen && (
<div
@@ -77,7 +77,7 @@ export default function Layout({ children }: LayoutProps) {
<Sidebar />
<main className="flex-1 flex flex-col overflow-hidden max-w-full">
<main className="flex-1 flex flex-col h-full">
{/* Header with mobile menu and store selector */}
<header className="h-16 bg-white border-b border-gray-200 flex items-center justify-between px-4 sm:px-6">
<div className="flex items-center gap-4">
@@ -157,10 +157,8 @@ export default function Layout({ children }: LayoutProps) {
)}
</header>
<div className="flex-1 overflow-y-auto overflow-x-hidden bg-gray-50 p-6 max-w-full">
<div className="max-w-full overflow-x-hidden">
{children}
</div>
<div className="flex-1 bg-gray-50 p-6 h-full overflow-y-auto">
{children}
</div>
</main>
</div>
+11 -13
View File
@@ -115,22 +115,20 @@
display: none;
}
/* Solution simple et directe pour masquer l'ascenseur horizontal */
::-webkit-scrollbar:horizontal {
display: none !important;
}
html {
overflow-x: hidden !important;
scrollbar-width: none;
}
body {
overflow-x: hidden !important;
/* Solution pour masquer l'ascenseur vertical de droite */
html, body {
height: 100%;
overflow: hidden !important;
}
#root {
overflow-x: hidden !important;
height: 100%;
overflow: hidden !important;
}
.layout-container {
height: 100vh;
overflow: hidden !important;
}
.bg-secondary {
+1
View File
@@ -33,6 +33,7 @@ The platform is built with a clear separation of concerns, utilizing a modern fu
- **Order and Delivery Management:** Full CRUD operations for orders and deliveries, including linking orders to deliveries and managing their statuses.
- **Reconciliation:** Functionality for reconciling Bills of Lading (BL) and invoices with immediate UI updates.
- **Invoice Verification Cache:** Robust caching system for invoice verification results with automatic expiration and conflict resolution. Enhanced with unique constraint handling and graceful error management for production stability (August 2025).
- **UI Scrollbar Optimization:** Eliminated redundant vertical scrollbar on the right side of the screen while preserving necessary internal page scrolling. Implemented global CSS rules with `overflow: hidden` on html/body/root and Layout height management to prevent vertical overflow issues in production (August 2025).
- **User and Permission Management:** Granular access controls ensuring that users (e.g., employees) have appropriate permissions for tasks like creating customer orders.
- **Reporting:** Statistical reporting, including monthly summaries of deliveries based on `deliveredDate`.