fix(rankings): long metric labels wrap instead of widening the table
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 15s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 47s
Build and Push Docker Images / Build Pipeline (Meltano + dbt + Airflow) (push) Successful in 12s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 0s
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 15s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 47s
Build and Push Docker Images / Build Pipeline (Meltano + dbt + Airflow) (push) Successful in 12s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 0s
Table auto-layout sizes columns by unwrapped header text, so labels like 'Reading, Writing & Maths Combined Higher %' pushed the value column — and the table — past the viewport. The label now renders inside a block span capped at 110px (84px on phones), forcing multiline and keeping the table fully in view at any metric. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -187,6 +187,18 @@
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Table auto-layout sizes columns by the unwrapped text, so a long metric
|
||||
label ("Reading, Writing & Maths Combined Higher %") widened the table
|
||||
past the viewport. A block inner span is what actually caps the measured
|
||||
width and forces the label onto multiple lines. */
|
||||
.valueHeaderText {
|
||||
display: block;
|
||||
max-width: 110px;
|
||||
margin: 0 auto;
|
||||
white-space: normal;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.actionHeader {
|
||||
width: 120px;
|
||||
text-align: center;
|
||||
@@ -411,7 +423,7 @@
|
||||
}
|
||||
|
||||
/* Long metric labels like "Reading, Writing & Maths Combined %" used to
|
||||
force the whole column wide; let them wrap onto 2 short lines with a
|
||||
force the whole column wide; let them wrap onto short lines with a
|
||||
tighter font so the value cell can stay compact. */
|
||||
.valueHeader {
|
||||
font-size: 0.625rem;
|
||||
@@ -420,6 +432,10 @@
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
.valueHeaderText {
|
||||
max-width: 84px;
|
||||
}
|
||||
|
||||
.rankHeader {
|
||||
width: 40px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user