[Fix] UI - Model Page: Column Resizing on Smaller Screens#20599
Merged
yuneng-jiang merged 1 commit intomainfrom Feb 6, 2026
Merged
[Fix] UI - Model Page: Column Resizing on Smaller Screens#20599yuneng-jiang merged 1 commit intomainfrom
yuneng-jiang merged 1 commit intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile OverviewGreptile SummaryFixed column resizing behavior on smaller screens by removing hardcoded CSS widths ( Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| ui/litellm-dashboard/src/components/model_dashboard/all_models_table.tsx | Updated table styling to use dynamic width calculation (tableInstance.getTotalSize()) with tableLayout: "fixed" and added overflow-hidden to table cells for better column resizing on smaller screens |
| ui/litellm-dashboard/src/components/model_dashboard/table.tsx | Updated table styling to use dynamic width calculation (tableInstance.getTotalSize()) with tableLayout: "fixed" and added overflow-hidden to table cells for better column resizing on smaller screens |
| ui/litellm-dashboard/src/components/molecules/models/columns.tsx | Added size and minSize properties to all columns, replaced Tooltip with Popover for Model Information column with enhanced UI, replaced hardcoded max-w-[*] with w-full for responsive sizing, and replaced div with Ant Design Text component with ellipsis support |
| ui/litellm-dashboard/src/components/molecules/models/columns.test.tsx | New comprehensive test file covering column rendering, user interactions, data display, access control, and edge cases |
Sequence Diagram
sequenceDiagram
participant User
participant Browser
participant Table Component
participant TanStack Table
participant Column Defs
User->>Browser: View model page on small screen
Browser->>Table Component: Render with viewport constraints
Table Component->>Column Defs: Request column definitions
Column Defs-->>Table Component: Return columns with size/minSize props
Table Component->>TanStack Table: Initialize with columns & data
TanStack Table->>TanStack Table: Calculate getTotalSize() based on column sizes
TanStack Table-->>Table Component: Return table instance
Table Component->>Browser: Apply dynamic width (getTotalSize())
Table Component->>Browser: Apply tableLayout: "fixed"
Browser->>Browser: Render table with responsive column sizing
User->>Browser: Resize column
Browser->>TanStack Table: Trigger resize handler
TanStack Table->>TanStack Table: Update columnSizing state
TanStack Table->>TanStack Table: Recalculate getTotalSize()
TanStack Table-->>Table Component: Update table instance
Table Component->>Browser: Apply new width (getTotalSize())
Browser->>Browser: Render with resized columns
User->>Browser: Hover over Model Information
Browser->>Column Defs: Trigger Popover
Column Defs->>Browser: Display enhanced model details
Browser-->>User: Show popover with provider, model names
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relevant issues
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
tests/litellm/directory, Adding at least 1 test is a hard requirement - see detailsmake test-unitCI (LiteLLM team)
Branch creation CI run
Link:
CI run for the last commit
Link:
Merge / cherry-pick CI run
Links:
Type
🐛 Bug Fix
✅ Test
Changes
This PR fixes the column resizing on smaller screens. The issue was hard coded CSS that required each column to be a certain size, which restricted column resizing on small screens