فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
fix(q01): prevent dashboard grid overflow in narrow content panes
davoodmehraban89 committed
Oct 31, 2026 at 08:10 UTC
f3b049efdaa4ba2c9d7fdd380851f2602c91ff87
1 file changed
+12
-3
src/styles/main.css
+12
-3
@@ -317,7 +317,10 @@ a { color: inherit; }
317
background: var(--card-bg);
318
border: 1px solid var(--border);
319
border-radius: var(--radius);
320
- overflow: hidden;
320
+ max-width: 100%;
321
+ overflow-x: auto;
322
+ overflow-y: hidden;
323
+ overscroll-behavior-x: contain;
324
}
325
.table-wrap table {
326
width: 100%;
@@ -718,8 +721,14 @@ textarea.form-control { min-height: 80px; resize: vertical; }
721
}
722
723
/* ===== Dashboard Layout ===== */
721
-@media (max-width: 1024px) {
724
+.dash-grid-main,
725
+.dash-grid-main > * {
726
+ min-width: 0;
727
+}
728
+@media (max-width: 1200px) {
729
+ /* The sidebar consumes part of the viewport. Switch to one column before
730
+ the remaining content pane becomes narrower than the chart's intrinsic width. */
731
.dash-grid-main {
723
- grid-template-columns: 1fr !important;
732
+ grid-template-columns: minmax(0, 1fr) !important;
733
}
734
}
\ No newline at end of file