Fix: Move superimposed viewer controls (Reset, Surface, Spin) inside the viewer box
Browse files- amberprep/css/styles.css +8 -0
- amberprep/html/index.html +3 -3
amberprep/css/styles.css
CHANGED
|
@@ -507,6 +507,14 @@ body {
|
|
| 507 |
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
|
| 508 |
}
|
| 509 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 510 |
/* Simulation Parameters */
|
| 511 |
.params-grid {
|
| 512 |
display: grid;
|
|
|
|
| 507 |
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
|
| 508 |
}
|
| 509 |
|
| 510 |
+
/* Superimposed structure preview: controls inside the viewer box (parent has position: relative) */
|
| 511 |
+
#superimposed-molecule-viewer .viewer-controls {
|
| 512 |
+
position: absolute;
|
| 513 |
+
top: 10px;
|
| 514 |
+
right: 10px;
|
| 515 |
+
z-index: 10;
|
| 516 |
+
}
|
| 517 |
+
|
| 518 |
/* Simulation Parameters */
|
| 519 |
.params-grid {
|
| 520 |
display: grid;
|
amberprep/html/index.html
CHANGED
|
@@ -305,6 +305,9 @@
|
|
| 305 |
<span style="margin: 0 10px;">|</span>
|
| 306 |
<span style="color: #28a745; font-weight: 600;"><i class="fas fa-puzzle-piece"></i> Completed Structure</span>
|
| 307 |
</div>
|
|
|
|
|
|
|
|
|
|
| 308 |
<div id="superimposed-viewer-controls" class="viewer-controls" style="display: none; gap: 10px;">
|
| 309 |
<button class="btn btn-sm btn-secondary" onclick="mdPipeline.resetSuperimposedView()">
|
| 310 |
<i class="fas fa-home"></i> Reset
|
|
@@ -317,9 +320,6 @@
|
|
| 317 |
</button>
|
| 318 |
</div>
|
| 319 |
</div>
|
| 320 |
-
<div id="superimposed-molecule-viewer" class="molecule-viewer" style="border: 2px solid #007bff; border-radius: 5px; width: 100%; height: 600px; position: relative;">
|
| 321 |
-
<div id="superimposed-ngl-viewer" style="width: 100%; height: 100%; position: absolute; top: 0; left: 0;"></div>
|
| 322 |
-
</div>
|
| 323 |
</div>
|
| 324 |
</div>
|
| 325 |
</div>
|
|
|
|
| 305 |
<span style="margin: 0 10px;">|</span>
|
| 306 |
<span style="color: #28a745; font-weight: 600;"><i class="fas fa-puzzle-piece"></i> Completed Structure</span>
|
| 307 |
</div>
|
| 308 |
+
</div>
|
| 309 |
+
<div id="superimposed-molecule-viewer" class="molecule-viewer" style="border: 2px solid #007bff; border-radius: 5px; width: 100%; height: 600px; position: relative;">
|
| 310 |
+
<div id="superimposed-ngl-viewer" style="width: 100%; height: 100%; position: absolute; top: 0; left: 0;"></div>
|
| 311 |
<div id="superimposed-viewer-controls" class="viewer-controls" style="display: none; gap: 10px;">
|
| 312 |
<button class="btn btn-sm btn-secondary" onclick="mdPipeline.resetSuperimposedView()">
|
| 313 |
<i class="fas fa-home"></i> Reset
|
|
|
|
| 320 |
</button>
|
| 321 |
</div>
|
| 322 |
</div>
|
|
|
|
|
|
|
|
|
|
| 323 |
</div>
|
| 324 |
</div>
|
| 325 |
</div>
|