Use auto-fit grid for funds and dashboard account cards
Account cards expand to fill available width when fewer exchanges are enabled instead of staying in fixed four-column tracks. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -5902,7 +5902,7 @@ html[data-theme="light"] .funds-chart-panel {
|
|||||||
}
|
}
|
||||||
.funds-accounts {
|
.funds-accounts {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
padding: 4px 0 12px;
|
padding: 4px 0 12px;
|
||||||
}
|
}
|
||||||
@@ -6141,11 +6141,6 @@ html[data-theme="light"] .funds-fs-panel {
|
|||||||
body.funds-fullscreen-open {
|
body.funds-fullscreen-open {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
@media (max-width: 1100px) {
|
|
||||||
.funds-accounts {
|
|
||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media (max-width: 720px) {
|
@media (max-width: 720px) {
|
||||||
.funds-accounts {
|
.funds-accounts {
|
||||||
grid-template-columns: minmax(0, 1fr);
|
grid-template-columns: minmax(0, 1fr);
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ body.hub-page-dashboard .page#page-dashboard {
|
|||||||
|
|
||||||
.dash-ac-grid {
|
.dash-ac-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
padding: 14px;
|
padding: 14px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user