refactor: optimize dashboard layout columns, introduce zen-mode view toggles, and standardize sidebar compact-rail behavior
Build Curio HMS / build-and-deploy (push) Successful in 49s
Details
Build Curio HMS / build-and-deploy (push) Successful in 49s
Details
This commit is contained in:
parent
abb3f7424b
commit
c9688522e6
|
|
@ -1351,8 +1351,7 @@
|
||||||
|
|
||||||
.zen-layout-3col {
|
.zen-layout-3col {
|
||||||
display: grid;
|
display: grid;
|
||||||
/* 1fr handles the queue; minmax blocks ensure typing canvas and context remain readable */
|
grid-template-columns: 180px minmax(400px, 2.5fr) minmax(280px, 1.2fr);
|
||||||
grid-template-columns: 1fr minmax(450px, 2.5fr) minmax(300px, 1.2fr);
|
|
||||||
gap: 1.5rem;
|
gap: 1.5rem;
|
||||||
align-items: start;
|
align-items: start;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
|
|
@ -1360,7 +1359,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.zen-layout-3col.collapsed-queue {
|
.zen-layout-3col.collapsed-queue {
|
||||||
grid-template-columns: 5% minmax(450px, 3fr) minmax(300px, 1.2fr);
|
grid-template-columns: 60px minmax(400px, 3fr) minmax(280px, 1.2fr);
|
||||||
}
|
}
|
||||||
|
|
||||||
.zen-pipeline {
|
.zen-pipeline {
|
||||||
|
|
@ -1521,20 +1520,10 @@
|
||||||
@media (max-width: 1024px) {
|
@media (max-width: 1024px) {
|
||||||
.queue-section,
|
.queue-section,
|
||||||
.zen-layout,
|
.zen-layout,
|
||||||
.zen-layout-3col,
|
|
||||||
.zen-grid {
|
.zen-grid {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.zen-layout-3col {
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.zen-pipeline.full-height {
|
|
||||||
height: auto;
|
|
||||||
position: static;
|
|
||||||
}
|
|
||||||
|
|
||||||
.revenue-grid {
|
.revenue-grid {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
@ -1568,6 +1557,16 @@
|
||||||
.search-bar {
|
.search-bar {
|
||||||
max-width: none;
|
max-width: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.zen-layout-3col {
|
||||||
|
grid-template-columns: 1fr !important;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.zen-pipeline.full-height {
|
||||||
|
height: auto;
|
||||||
|
position: static;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Utility Hidden */
|
/* Utility Hidden */
|
||||||
|
|
@ -1634,15 +1633,55 @@ body.zen-mode-active .dash-header {
|
||||||
margin-left: 70px;
|
margin-left: 70px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1025px) {
|
@media (min-width: 769px) {
|
||||||
.zen-workspace-soap {
|
body.zen-mode-active {
|
||||||
height: 100%;
|
height: 100vh;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.zen-mode-active .dashboard-main {
|
||||||
|
height: 100vh;
|
||||||
|
padding: 1.5rem 2rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.soap-container {
|
|
||||||
|
body.zen-mode-active #doctor-zen-section {
|
||||||
|
flex: 1;
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.zen-mode-active .zen-layout-3col {
|
||||||
|
height: 100%;
|
||||||
|
padding: 0;
|
||||||
|
gap: 1.5rem;
|
||||||
|
grid-template-rows: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.zen-mode-active .zen-pipeline.full-height {
|
||||||
|
height: 100%;
|
||||||
|
position: static;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.zen-mode-active .zen-workspace-soap {
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.zen-mode-active .soap-container {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.zen-mode-active .zen-sidebar-right {
|
||||||
|
height: 100%;
|
||||||
|
overflow-y: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1.5rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body class="dashboard-body">
|
<body class="dashboard-body">
|
||||||
<div class="sidebar-mobile-toggle" onclick="toggleSidebar()">☰ Menu</div>
|
<div class="sidebar-mobile-toggle" onclick="toggleSidebar()">☰ Menu</div>
|
||||||
<aside class="sidebar compact-rail" id="sidebar">
|
<aside class="sidebar" id="sidebar">
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<span class="logo-icon">C</span>
|
<span class="logo-icon">C</span>
|
||||||
<span class="logo-text" data-tenant-name>Curio</span>
|
<span class="logo-text" data-tenant-name>Curio</span>
|
||||||
|
|
|
||||||
|
|
@ -149,8 +149,13 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||||
}
|
}
|
||||||
if (emailDisplay) emailDisplay.innerText = userEmail;
|
if (emailDisplay) emailDisplay.innerText = userEmail;
|
||||||
|
|
||||||
|
const sidebar = document.getElementById('sidebar');
|
||||||
if (userRole === 'DOCTOR') {
|
if (userRole === 'DOCTOR') {
|
||||||
document.body.classList.add('role-doctor');
|
document.body.classList.add('role-doctor');
|
||||||
|
sidebar?.classList.add('compact-rail');
|
||||||
|
} else {
|
||||||
|
document.body.classList.remove('role-doctor');
|
||||||
|
sidebar?.classList.remove('compact-rail');
|
||||||
}
|
}
|
||||||
|
|
||||||
applyRoleNav();
|
applyRoleNav();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue