This commit is contained in:
Mackie 2026-06-08 08:34:23 +08:00
parent 54cf76a340
commit 5de27c250d
2 changed files with 6 additions and 5 deletions

View file

@ -20,7 +20,7 @@
width: 100%; width: 100%;
} }
/* The container for the absolute positioning */ /* App.css */
.row { .row {
position: absolute; position: absolute;
top: 0; top: 0;
@ -29,21 +29,21 @@
padding: 0 1rem; padding: 0 1rem;
box-sizing: border-box; box-sizing: border-box;
border-bottom: 1px solid #2d3748; border-bottom: 1px solid #2d3748;
height: 35px; /* Match your estimateSize in the virtualizer */
} }
/* The actual grid that forces alignment */
.row-inner { .row-inner {
display: grid; display: grid;
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr; /* Exactly two equal columns */
align-items: center; align-items: center;
height: 100%; height: 100%;
} }
.price-cell { .price-cell {
text-align: right; text-align: right;
font-family: 'Courier New', Courier, monospace; font-family: 'Courier New', Courier, monospace; /* Prevents text jumping */
font-variant-numeric: tabular-nums; /* Critical for financial data alignment */
} }
/* Ensure the price text is right-aligned to match professional dashboards */ /* Ensure the price text is right-aligned to match professional dashboards */
.row .price { .row .price {
text-align: right; text-align: right;

View file

@ -35,6 +35,7 @@ export default function App() {
</div> </div>
</div> </div>
))} ))}
</div> </div>
</div> </div>
</div> </div>