Skip to content

Commit 99c8205

Browse files
localai-botmudler
andauthored
fix(react-ui): stop Talk pipeline overflow and center collapsed-rail avatar (#10305)
Two small visual fixes in the React UI: - Talk page pipeline summary: the four-column grid used `repeat(4, 1fr)`, which resolves to `minmax(auto, 1fr)` so each track refuses to shrink below the min-content width of its `nowrap` model name. Long names (e.g. a verbose GGUF LLM id) blew the grid out past the container despite the per-cell ellipsis styling. Switching to `minmax(0, 1fr)` lets the tracks shrink and the ellipsis take effect. - Sidebar user avatar: the desktop collapsed look centers the avatar via `.sidebar.collapsed .sidebar-user{-link}` rules, but the tablet icon-rail (640-1023px) collapses visually through `.sidebar:not(.open)` without necessarily carrying the `.collapsed` class, so the avatar kept its left-aligned negative margins and looked misaligned. Mirror the centering rules under `.sidebar:not(.open)`. Assisted-by: Claude:claude-opus-4-8 [Claude Code] Signed-off-by: Ettore Di Giacinto <mudler@localai.io> Co-authored-by: Ettore Di Giacinto <mudler@localai.io>
1 parent d7162b9 commit 99c8205

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

core/http/react-ui/src/App.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5017,6 +5017,10 @@ select.input {
50175017
}
50185018
.sidebar:not(.open) .sidebar-user-name,
50195019
.sidebar:not(.open) .sidebar-logout-btn { display: none; }
5020+
/* Center the avatar in the icon rail (mirrors .sidebar.collapsed, which
5021+
isn't necessarily present in the tablet :not(.open) state). */
5022+
.sidebar:not(.open) .sidebar-user { justify-content: center; }
5023+
.sidebar:not(.open) .sidebar-user-link { flex: 0; margin: 0; padding: 2px; }
50205024

50215025
/* Pinned open: overlay the full sidebar on top of content */
50225026
.sidebar.open {

core/http/react-ui/src/pages/Talk.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ export default function Talk() {
705705
)}
706706
{selectedModelInfo && !selectedModelInfo.self_contained && (
707707
<div style={{
708-
display: 'grid', gridTemplateColumns: 'repeat(4, 1fr)', gap: 'var(--spacing-xs)',
708+
display: 'grid', gridTemplateColumns: 'repeat(4, minmax(0, 1fr))', gap: 'var(--spacing-xs)',
709709
marginBottom: 'var(--spacing-xs)', fontSize: '0.75rem',
710710
}}>
711711
{[

0 commit comments

Comments
 (0)