Spaces:
Sleeping
Sleeping
sabareesh4317 commited on
Commit ·
f59d51a
1
Parent(s): 73e8d34
Fix mobile scrolling and remove demo button
Browse files- static/css/styles.css +10 -0
- templates/app.html +17 -18
static/css/styles.css
CHANGED
|
@@ -2095,6 +2095,16 @@ body.startup-mode .app-header {
|
|
| 2095 |
margin-top: auto;
|
| 2096 |
/* Push to bottom if flex container */
|
| 2097 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2098 |
}
|
| 2099 |
|
| 2100 |
/* Custom Scrollbar */
|
|
|
|
| 2095 |
margin-top: auto;
|
| 2096 |
/* Push to bottom if flex container */
|
| 2097 |
}
|
| 2098 |
+
|
| 2099 |
+
.details-section {
|
| 2100 |
+
height: auto;
|
| 2101 |
+
overflow: visible;
|
| 2102 |
+
}
|
| 2103 |
+
|
| 2104 |
+
.panel-content {
|
| 2105 |
+
overflow: visible;
|
| 2106 |
+
flex: none;
|
| 2107 |
+
}
|
| 2108 |
}
|
| 2109 |
|
| 2110 |
/* Custom Scrollbar */
|
templates/app.html
CHANGED
|
@@ -94,10 +94,8 @@
|
|
| 94 |
<input type="file" id="file-input" accept=".jpg, .jpeg" style="display: none;">
|
| 95 |
</div>
|
| 96 |
|
| 97 |
-
<div class="hero-actions">
|
| 98 |
-
<button
|
| 99 |
-
<i class="fas fa-bolt"></i> Try Demo Prescription
|
| 100 |
-
</button>
|
| 101 |
</div>
|
| 102 |
</div>
|
| 103 |
<!-- General AI Disclaimer (Startup) -->
|
|
@@ -109,17 +107,17 @@
|
|
| 109 |
</div>
|
| 110 |
|
| 111 |
<!-- 2. Results View (Center + Right Panel) -->
|
| 112 |
-
<div id="results-view" class="results-view-container"
|
| 113 |
-
|
|
|
|
| 114 |
<!-- Inner Grid Wrapper -->
|
| 115 |
<div class="results-grid" style="flex: 1; overflow: hidden;">
|
| 116 |
-
|
| 117 |
<!-- Center Panel: Analysis Summary & Details -->
|
| 118 |
<div class="results-center">
|
| 119 |
-
|
| 120 |
<!-- Details Section (Consolidated) -->
|
| 121 |
-
<div class="details-section"
|
| 122 |
-
style="margin-top: 0; height: 100%; display: flex; flex-direction: column;">
|
| 123 |
<div class="panel-header"
|
| 124 |
style="display: flex; justify-content: space-between; align-items: flex-start;">
|
| 125 |
<div>
|
|
@@ -131,7 +129,7 @@
|
|
| 131 |
<i class="fas fa-times"></i>
|
| 132 |
</button>
|
| 133 |
</div>
|
| 134 |
-
|
| 135 |
<!-- Patient Info Grid (Moved here) -->
|
| 136 |
<div class="patient-grid"
|
| 137 |
style="padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); margin-bottom: 0;">
|
|
@@ -148,7 +146,7 @@
|
|
| 148 |
<div id="prescription-date" class="info-value">--</div>
|
| 149 |
</div>
|
| 150 |
</div>
|
| 151 |
-
|
| 152 |
<!-- Health Tip (Moved here) -->
|
| 153 |
<div id="health-tip-section" class="health-tip-box"
|
| 154 |
style="display: none; margin: 1rem 1.5rem;">
|
|
@@ -157,12 +155,12 @@
|
|
| 157 |
<strong>Health Tip:</strong> <span id="health-tip-content">--</span>
|
| 158 |
</div>
|
| 159 |
</div>
|
| 160 |
-
|
| 161 |
<div class="panel-tabs" style="padding: 0 1.5rem;">
|
| 162 |
<button class="panel-tab active" data-tab="medicines">Medicines</button>
|
| 163 |
<button class="panel-tab" data-tab="safety">Safety</button>
|
| 164 |
</div>
|
| 165 |
-
|
| 166 |
<div class="panel-content">
|
| 167 |
<!-- Medicines List -->
|
| 168 |
<div id="panel-medicines" class="panel-pane active">
|
|
@@ -170,7 +168,7 @@
|
|
| 170 |
<!-- Injected via JS -->
|
| 171 |
</div>
|
| 172 |
</div>
|
| 173 |
-
|
| 174 |
<!-- Safety Checks -->
|
| 175 |
<div id="panel-safety" class="panel-pane">
|
| 176 |
<div id="interactions-list" class="scroll-list">
|
|
@@ -181,7 +179,7 @@
|
|
| 181 |
</div>
|
| 182 |
<!-- End Center Panel -->
|
| 183 |
</div>
|
| 184 |
-
|
| 185 |
<!-- Right Panel: Image Viewer -->
|
| 186 |
<div class="results-right">
|
| 187 |
<div class="image-viewer-container">
|
|
@@ -194,7 +192,7 @@
|
|
| 194 |
<img id="thumbnail-image" src="" alt="Prescription">
|
| 195 |
</div>
|
| 196 |
</div>
|
| 197 |
-
|
| 198 |
<!-- Export Actions (Bottom of Right Panel) -->
|
| 199 |
<div class="panel-actions">
|
| 200 |
<button class="btn btn-secondary btn-block" onclick="downloadPDF()">
|
|
@@ -206,7 +204,8 @@
|
|
| 206 |
</div> <!-- End Inner Grid -->
|
| 207 |
|
| 208 |
<!-- General AI Disclaimer (Footer) -->
|
| 209 |
-
<div class="ai-disclaimer"
|
|
|
|
| 210 |
<i class="fas fa-robot"></i>
|
| 211 |
<span>AI-generated results. Not a substitute for professional medical advice. Verify all
|
| 212 |
details.</span>
|
|
|
|
| 94 |
<input type="file" id="file-input" accept=".jpg, .jpeg" style="display: none;">
|
| 95 |
</div>
|
| 96 |
|
| 97 |
+
<div class="hero-actions" style="display: none;">
|
| 98 |
+
<!-- Demo button removed -->
|
|
|
|
|
|
|
| 99 |
</div>
|
| 100 |
</div>
|
| 101 |
<!-- General AI Disclaimer (Startup) -->
|
|
|
|
| 107 |
</div>
|
| 108 |
|
| 109 |
<!-- 2. Results View (Center + Right Panel) -->
|
| 110 |
+
<div id="results-view" class="results-view-container"
|
| 111 |
+
style="display: none; height: 100%; flex-direction: column;">
|
| 112 |
+
|
| 113 |
<!-- Inner Grid Wrapper -->
|
| 114 |
<div class="results-grid" style="flex: 1; overflow: hidden;">
|
| 115 |
+
|
| 116 |
<!-- Center Panel: Analysis Summary & Details -->
|
| 117 |
<div class="results-center">
|
| 118 |
+
|
| 119 |
<!-- Details Section (Consolidated) -->
|
| 120 |
+
<div class="details-section">
|
|
|
|
| 121 |
<div class="panel-header"
|
| 122 |
style="display: flex; justify-content: space-between; align-items: flex-start;">
|
| 123 |
<div>
|
|
|
|
| 129 |
<i class="fas fa-times"></i>
|
| 130 |
</button>
|
| 131 |
</div>
|
| 132 |
+
|
| 133 |
<!-- Patient Info Grid (Moved here) -->
|
| 134 |
<div class="patient-grid"
|
| 135 |
style="padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); margin-bottom: 0;">
|
|
|
|
| 146 |
<div id="prescription-date" class="info-value">--</div>
|
| 147 |
</div>
|
| 148 |
</div>
|
| 149 |
+
|
| 150 |
<!-- Health Tip (Moved here) -->
|
| 151 |
<div id="health-tip-section" class="health-tip-box"
|
| 152 |
style="display: none; margin: 1rem 1.5rem;">
|
|
|
|
| 155 |
<strong>Health Tip:</strong> <span id="health-tip-content">--</span>
|
| 156 |
</div>
|
| 157 |
</div>
|
| 158 |
+
|
| 159 |
<div class="panel-tabs" style="padding: 0 1.5rem;">
|
| 160 |
<button class="panel-tab active" data-tab="medicines">Medicines</button>
|
| 161 |
<button class="panel-tab" data-tab="safety">Safety</button>
|
| 162 |
</div>
|
| 163 |
+
|
| 164 |
<div class="panel-content">
|
| 165 |
<!-- Medicines List -->
|
| 166 |
<div id="panel-medicines" class="panel-pane active">
|
|
|
|
| 168 |
<!-- Injected via JS -->
|
| 169 |
</div>
|
| 170 |
</div>
|
| 171 |
+
|
| 172 |
<!-- Safety Checks -->
|
| 173 |
<div id="panel-safety" class="panel-pane">
|
| 174 |
<div id="interactions-list" class="scroll-list">
|
|
|
|
| 179 |
</div>
|
| 180 |
<!-- End Center Panel -->
|
| 181 |
</div>
|
| 182 |
+
|
| 183 |
<!-- Right Panel: Image Viewer -->
|
| 184 |
<div class="results-right">
|
| 185 |
<div class="image-viewer-container">
|
|
|
|
| 192 |
<img id="thumbnail-image" src="" alt="Prescription">
|
| 193 |
</div>
|
| 194 |
</div>
|
| 195 |
+
|
| 196 |
<!-- Export Actions (Bottom of Right Panel) -->
|
| 197 |
<div class="panel-actions">
|
| 198 |
<button class="btn btn-secondary btn-block" onclick="downloadPDF()">
|
|
|
|
| 204 |
</div> <!-- End Inner Grid -->
|
| 205 |
|
| 206 |
<!-- General AI Disclaimer (Footer) -->
|
| 207 |
+
<div class="ai-disclaimer"
|
| 208 |
+
style="flex-shrink: 0; padding: 12px; text-align: center; background: var(--bg-surface); border-top: 1px solid var(--border-color); width: 100%;">
|
| 209 |
<i class="fas fa-robot"></i>
|
| 210 |
<span>AI-generated results. Not a substitute for professional medical advice. Verify all
|
| 211 |
details.</span>
|