Repository navigation
Fix the refreshed UI: offline assets, page padding, story rows, startup window - #2
Merged
Merged
Conversation
…up window The redesigned interface shipped with a few problems that made it feel broken: Assets - style.css imported Bootstrap Icons and the General Sans / Erode webfonts from CDNs. In the desktop app those requests fail silently with no connection, so every icon disappeared and the typography fell back. Both are now bundled (Bootstrap Icons MIT; Inter and Literata, SIL OFL 1.1) and loaded locally. Writing desk - The editor card was 1010px wide while the page inside it was 792px, stacking roughly 195px of horizontal padding on each side of the text. Both now share a single --page-width measure, so the heading, the card and the page line up and the main-content padding drops from up to 60px to 28px. - Raised the 7-9px micro labels to a legible 10-12px scale and tightened the very wide letter-spacing that came with them. Recent stories - The rename / duplicate / delete menu was absolutely positioned inside the sidebar, which both scrolls, so it was clipped and broke the row. The menu is now fixed to the viewport and positioned in JavaScript, flipping above the button near the bottom of the window and closing on scroll or resize. Rows are more compact and the actions no longer shift the layout. Startup window - Rebuilt launch.html in the studio's design language: model cards with download size, VRAM and relative speed, a details strip, themed window controls and a real progress bar. It also defines updateProgressBar() and displayText(), the two functions main.py's Api class calls but that never existed, and main.py now reports coarse progress while the model downloads. Also bumps the displayed and packaged version to 1.2.1 beta. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
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.
Fixes the four issues reported with the refreshed interface.
What was wrong, and what changed
1. Assets loaded from the internet (the root cause of "styles look broken")
style.cssbegan with two@import url(...)rules pulling Bootstrap Icons from jsDelivr and the General Sans / Erode webfonts from Fontshare. In the packaged desktop app those requests fail silently when there is no connection, so every icon vanished and the typography fell back to defaults — the interface looked fancy in a screenshot and broken in the app.Both are now bundled and loaded from disk:
web/vendor/bootstrap-icons/— Bootstrap Icons 1.11.3 (MIT).web/fonts/— Inter Variable (UI) and Literata Variable (headings and long-form reading), both SIL Open Font License 1.1, latin subset.They live under
web/, which the build workflow already packages with--add-data "web:web", so no release changes are needed.2. Too much horizontal padding on the main screen
The editor card was
1010pxwhile the page inside it was792px, and.main-contentadded up to60pxmore per side — about195pxof dead space on each side of the text. The heading, card and page now share one--page-widthmeasure (920px), the page fills the card, and main-content padding drops toclamp(16px, 2vw, 28px).3. Recent-stories rows broke their own UI
The rename / duplicate / delete menu was absolutely positioned inside the sidebar, and both the sidebar and the recent list scroll — so the menu was clipped and tore the row apart. The menu is now fixed to the viewport and positioned in JavaScript (flips above the button near the bottom of the window, closes on scroll and resize). Rows are more compact, the action button no longer shifts layout, and the sidebar meta line is just "Edited <date>" so long names truncate cleanly.
4. Launch page was never updated
launch.htmlstill used the pre-redesign markup and the old.button/.button2/flex-cclasses. It is rebuilt in the studio's design language: model cards showing download size, VRAM and relative speed, a details strip for the current selection, themed window controls and a real progress bar.While rebuilding it, two bugs surfaced in the startup flow:
main.pycallsupdateProgressBar()anddisplayText()fromApi.update_progress_bar()andApi.display_text(), but neither function existed in the page, so progress could never advance past the fake indeterminate animation. Both are implemented, anddownload_model()now reports coarse progress while the model downloads.Also
Validation
node --checkpasses on every script;main.pycompiles.index.html,launch.html, both stylesheets, all four woff2 files).