Skip to content

Prevent model status from overlapping the footer - #95

Merged
D-Ogi merged 5 commits into
mainfrom
fix/models-status-layout
Sep 16, 2026
Merged

D-Ogi merged 5 commits into
mainfrom
fix/models-status-layout

Conversation

@D-Ogi

@D-Ogi D-Ogi commented Sep 16, 2026 •

Copy link
Copy Markdown
Owner

The fixed-position model readiness button overlaps GPU text and falls outside the inset Windows XP frame. Put it in the status bar, wrap status details and device text when space is limited, and let the right panel shrink within the window.

Extend the real desktop check to verify that the GPU label and model button stay inside the footer without overlapping or overflowing, across every theme/language at 800x600 and 1000x800. Use visible native windows because hidden Qt windows can report a zero-sized viewport. The diagnostic opens the model dialog, waits for it to become visible, and measures rendered text with motion disabled for stable contrast checks.

Validation: the new geometry assertion reproduces the failure against the original UI. The fixed Windows Qt desktop passed all 128 theme/language/size combinations with a long GPU label and the downloading state; existing sidebar, tooltip, model-dialog contrast (minimum 6.7:1), and JavaScript/Python bridge checks also pass. Ruff, Python compilation and staged diff checks pass. Linux/macOS and portable desktop checks run in CI.

Summary by CodeRabbit

  • New Features

    • Added an inline models-status control to the status bar for model readiness information.
    • Status-bar content now wraps responsively, including device details, across different window sizes.
  • Bug Fixes

    • Improved narrow-window layouts by allowing the main content panel to shrink below 400 pixels.
    • Removed the duplicate floating models control.
    • Improved desktop layout validation for status-bar spacing, overflow, tooltip placement, and model-panel contrast across window sizes.

@coderabbitai

coderabbitai Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 125e42ad-a98c-4cb5-9247-709bc278f6ee

📥 Commits

Reviewing files that changed from the base of the PR and between 7a7de6c and bf886c0.

📒 Files selected for processing (1)
  • scripts/check_desktop.py

Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The status bar now supports constrained desktop layouts with an inline Models control. The desktop checker measures the models panel, filters contrast samples, validates contrast values, and runs at 800×600 and 1000×800.

Changes

Responsive desktop layout

Layer / File(s) Summary
Responsive status bar layout
ui/index.html, ui/themes.css
The content panel can shrink below 400px. The status bar uses dedicated containers, wraps status content, and includes a non-shrinking Models control. The duplicate fixed-position Models button was removed.
Multi-viewport desktop checks
scripts/check_desktop.py
The checker opens the models dialog before measurement, ignores hidden or empty contrast targets, rejects missing contrast values, checks two viewport sizes, retains GPU and status restoration, and uses a visible native window.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to bf886

No concrete current-head failure requiring a merge block remains after verification.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the primary change: preventing the model status control from overlapping the footer.
Description check ✅ Passed The description explains the problem, resulting behavior, affected UI areas, validation coverage, environments, and test results. It does not reproduce the required Scope, Validation table, or Review …
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/models-status-layout

Comment @coderabbitai help to get the list of available commands.

@D-Ogi
D-Ogi merged commit 0850416 into main Sep 16, 2026
8 checks passed
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.

1 participant