mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-22 06:28:19 +02:00
Adjust sidebar spacing to fix display issue on desktop
Update Layout component to conditionally apply left margin to main content based on screen size and sidebar state, specifically fixing a large empty space on desktop when the sidebar is not collapsed. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 95e8aab4-f39f-4b48-aa57-a759ec15ba3d Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/95e8aab4-f39f-4b48-aa57-a759ec15ba3d/E90Hfqm
This commit is contained in:
1 parent
d0cecf90f3
commit
6f5b5cb054
2 files changed
+3
-5
No files matched your search
@@ -16,7 +16,7 @@ localPort = 5000
|
|||||||
externalPort = 80
|
externalPort = 80
|
||||||
|
|
||||||
[[ports]]
|
[[ports]]
|
||||||
localPort = 45105
|
localPort = 45995
|
||||||
externalPort = 3000
|
externalPort = 3000
|
||||||
|
|
||||||
[workflows]
|
[workflows]
|
||||||
|
|||||||
@@ -132,10 +132,8 @@ export default function Layout({ children }: LayoutProps) {
|
|||||||
<Sidebar />
|
<Sidebar />
|
||||||
|
|
||||||
<main className={`flex-1 flex flex-col h-full ${
|
<main className={`flex-1 flex flex-col h-full ${
|
||||||
// Ajuster la marge gauche selon la taille de l'écran et l'état de la sidebar
|
// Marge gauche uniquement si la sidebar est en position fixed (tablet expanded)
|
||||||
isMobile ? 'ml-0' :
|
isMobile ? 'ml-0' : (isTablet && !sidebarCollapsed) ? 'ml-48' : 'ml-0'
|
||||||
isTablet ? (sidebarCollapsed ? 'ml-16' : 'ml-48') :
|
|
||||||
(sidebarCollapsed ? 'ml-16' : 'ml-64')
|
|
||||||
}`}>
|
}`}>
|
||||||
{/* Header with mobile menu and store selector */}
|
{/* Header with mobile menu and store selector */}
|
||||||
<header className={`h-16 bg-white border-b border-gray-200 flex items-center justify-between ${
|
<header className={`h-16 bg-white border-b border-gray-200 flex items-center justify-between ${
|
||||||
|
|||||||
Reference in new issue
Block a user