Merge pull request 'лендинг: пятая плитка падала на вторую строку, столбец «Расхождение» читался пустым' (#3290) from fix/mera-kpi-grid-and-table into main
Some checks failed
Deploy Trade-In / perimeter-smoke (push) Blocked by required conditions
Deploy Trade-In / deploy-status (push) Blocked by required conditions
Deploy Trade-In / changes (push) Successful in 14s
Deploy Trade-In / test (push) Has been skipped
Deploy Trade-In / build-browser (push) Has been skipped
Deploy Trade-In / deploy (push) Blocked by required conditions
Deploy Trade-In / build-backend (push) Has been skipped
Deploy Trade-In / build-frontend (push) Has been cancelled
Some checks failed
Deploy Trade-In / perimeter-smoke (push) Blocked by required conditions
Deploy Trade-In / deploy-status (push) Blocked by required conditions
Deploy Trade-In / changes (push) Successful in 14s
Deploy Trade-In / test (push) Has been skipped
Deploy Trade-In / build-browser (push) Has been skipped
Deploy Trade-In / deploy (push) Blocked by required conditions
Deploy Trade-In / build-backend (push) Has been skipped
Deploy Trade-In / build-frontend (push) Has been cancelled
This commit is contained in:
commit
86e6956257
1 changed files with 13 additions and 2 deletions
|
|
@ -983,9 +983,14 @@
|
|||
text-wrap: pretty;
|
||||
}
|
||||
|
||||
/* Плиток бывает четыре или пять (пятая — тёмная, приходит из /stats и может
|
||||
не прийти). Грид с фиксированной minmax-колонкой ронял пятую на вторую
|
||||
строку одну и узкую — читалось как обрыв. Flex-wrap с общим базисом делает
|
||||
строку цельной при любом числе плиток: что помещается — стоит в ряд,
|
||||
остаток растягивается на всю ширину, а не висит слева огрызком. */
|
||||
.accKpiGrid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 20px;
|
||||
margin: 0 0 32px;
|
||||
padding: 0;
|
||||
|
|
@ -993,6 +998,8 @@
|
|||
}
|
||||
|
||||
.accKpiTile {
|
||||
flex: 1 1 200px;
|
||||
min-width: 0;
|
||||
background: var(--b2c-page-bg);
|
||||
border: 1px solid var(--b2c-line);
|
||||
border-radius: 10px;
|
||||
|
|
@ -1100,10 +1107,14 @@
|
|||
color: var(--b2c-ink);
|
||||
}
|
||||
|
||||
/* Правый край — общий с заголовком столбца (.accTableHeadCellRight);
|
||||
иначе значения стоят левее шапки и столбец читается пустым.
|
||||
На мобильном брейке ниже text-align сбрасывается в left. */
|
||||
.accCellErr {
|
||||
font-family: var(--b2c-font-mono);
|
||||
font-size: 12px;
|
||||
color: var(--b2c-muted);
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.accCellGain {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue