mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-04-17 20:05:58 +00:00
Waterfall Phase 1.2 - Add vertical grid lines for time visualization
This commit is contained in:
@@ -40,6 +40,15 @@
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.grid-line {
|
||||
position: absolute;
|
||||
top: 25px;
|
||||
bottom: 0;
|
||||
width: 1px;
|
||||
background: rgba(119, 119, 119, 0.15);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.waterfall-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -50,11 +50,12 @@ function renderWaterfall() {
|
||||
|
||||
let html = '';
|
||||
|
||||
// Add time scale header
|
||||
// Add time scale header with grid lines
|
||||
html += '<div class="waterfall-timescale">';
|
||||
for (let sec = 0; sec <= Math.ceil(maxTime); sec++) {
|
||||
const pos = sec * scale;
|
||||
html += `<div class="time-marker" style="left: ${300 + pos}px">${sec}s</div>`;
|
||||
html += `<div class="grid-line" style="left: ${300 + pos}px"></div>`;
|
||||
}
|
||||
html += '</div>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user