mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
The header was hand-rolled rows, so the title, the subtitle, the legend and the tab control all competed for one line. The subtitle is longer on Cumulative than on Per day, so it wrapped on one tab and not the other and the chart moved with it; pinning the controls against shrinking then pushed them past the card edge once the viewport narrowed. CardHeader already solves this. It is a grid that switches to `grid-cols-[1fr_auto]` when a card-action slot is present, sizing the controls to their content and giving the rest to the title, with the description on its own row. Using CardTitle, CardDescription and CardAction removes the bespoke layout rather than tuning it, and the controls wrap inside their own column instead of overflowing. The guard test now anchors on those slots. Its previous selector matched a summary card's hint rather than this subtitle, so it passed with the subtitle moved back into the controls. |
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||