Skip to content

fix(ui): center the home empty-state wizard#10691

Merged
mudler merged 1 commit into
masterfrom
fix/home-wizard-centering
Jul 5, 2026
Merged

fix(ui): center the home empty-state wizard#10691
mudler merged 1 commit into
masterfrom
fix/home-wizard-centering

Conversation

@localai-bot

Copy link
Copy Markdown
Collaborator

What

The no-models getting-started wizard on the Home page rendered left-aligned instead of centered.

Why

.home-page is a column flexbox with the default align-items: stretch. .home-wizard sets max-width: 48rem, and a stretch column cannot stretch a child past its max-width, so the item falls back to the cross-start (left) edge. The populated-home branch never exposed this because its children are full-width and genuinely stretch to fill.

Fix

Add margin: 0 auto to .home-wizard so the max-width block centers horizontally. This covers both the admin getting-started wizard and the non-admin no-models hero, since both use .home-wizard.

CSS-only, one property. React UI e2e + coverage gate passes locally (214 specs green).

Assisted-by: Claude:claude-opus-4-8 [Claude Code]

The no-models getting-started wizard (`.home-wizard`) rendered
left-aligned instead of centered. `.home-page` is a column flexbox with
the default `align-items: stretch`; a child with `max-width: 48rem`
cannot be stretched past its max-width, so it falls back to the
cross-start (left) edge. The populated home branch never exposed this
because its children are full-width.

Add `margin: 0 auto` to `.home-wizard` so the max-width block centers
horizontally, for both the admin getting-started wizard and the
non-admin no-models hero.

Assisted-by: Claude:claude-opus-4-8 [Claude Code]
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler mudler merged commit bd3f258 into master Jul 5, 2026
61 checks passed
@mudler mudler deleted the fix/home-wizard-centering branch July 5, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants