Spaces:
Sleeping
Sleeping
File size: 3,467 Bytes
53b92fc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | /* === DASHBOARD LAYOUT FIX FOR GRADIO 5 === */
/* Global page lock
/* html, body, .gradio-container {
height: 100vh !important;
margin: 0 !important;
padding: 0 !important;
overflow: hidden !important;
background: #0e1117 !important;
font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif !important;
color: #eee !important;
} */
/* Root dashboard wrapper */
/* #dashboard_root {
height: 100vh !important;
display: flex;
flex-direction: column;
gap: 8px;
box-sizing: border-box;
padding: 8px 14px 10px 14px;
overflow: hidden !important;
} */
body, html, .gradio-container {
background-color: #0E1117 !important;
color: #E6E6E6 !important;
}
#dashboard_root {
/* gap: 8px !important; */
height: auto;
width: auto;
padding: 8px 20px 0px 20px;
margin: 0px;
}
/* Section heights */
.section-kpis { height: 10%; margin: 0; }
.section-top { height: 36%; display: flex; gap: 10px; }
.section-bottom { height: 45%; display: flex; gap: 10px; }
.center-me {
margin-left: auto !important;
margin-right: auto !important;
display: block !important;
text-align: center;
}
/* Card design */
.card {
background: #1C1F26 !important;
border: 1px solid #2A2D34 !important;
box-shadow: 0 0 10px rgba(0,0,0,0.4);
border-radius: 10px;
padding: 8px;
display: flex;
flex-direction: column;
justify-content: flex-start;
overflow: hidden;
}
.card h3 {
margin: 0 0 8px 0;
font-size: 14px;
font-weight: 600;
color: #9fb3c8;
}
/* KPI cards */
.kpi { flex: 1; display: flex; gap: 10px; }
.kpi-card {
background: #1C1F26 !important;
color: #E6E6E6 !important;
flex: 1;
border: 1px solid #222;
border-radius: 10px;
box-shadow: 0 0 8px rgba(0,0,0,0.2);
padding: 10px 12px;
display: flex;
flex-direction: column;
justify-content: center;
}
.kpi-label { font-size: 12px; color: #9fb3c8; margin: 0 0 2px 0; }
.kpi-value { font-size: 20px; font-weight: 700; color: #ffffff; margin: 0; }
/* Plot containers */
.plot-holder, .gr-plot {
flex: 1 0 0;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
}
.card .gradio-container, .card .wrap, .card .gr-box {
height: 100% !important;
}
/* === ChatInterface fix (inside #ai_panel) === */
#ai_panel {
height: 100% !important;
display: flex !important;
flex-direction: column !important;
min-height: 0 !important;
}
#ai_panel .gr-form {
flex: 1 1 auto !important;
display: flex !important;
flex-direction: column !important;
min-height: 0 !important;
overflow: hidden !important;
}
#ai_panel .gr-chatbot {
flex: 1 1 auto !important;
overflow-y: auto !important; /* internal scroll */
height: auto !important;
min-height: 0 !important;
scrollbar-width: thin;
scrollbar-color: #444 #15191e;
}
#ai_panel textarea,
#ai_panel input[type="text"] {
flex-shrink: 0 !important;
margin-top: 6px !important;
}
/* Remove Gradio footer (all variants) */
footer,
.gradio-container > footer,
.gradio-container footer,
[class*="footer"],
[id*="footer"],
[data-testid="footer"],
[data-testid="block-footer"] {
display: none !important;
visibility: hidden !important;
height: 0 !important;
min-height: 0 !important;
padding: 0 !important;
margin: 0 !important;
border: 0 !important;
}
|