Skip to content

Fix the refreshed UI: offline assets, page padding, story rows, startup window - #2

Merged
johanbeytell1 merged 1 commit into
mainfrom
arena/01a102d6-scriptify
Oct 3, 2026
Merged

johanbeytell1 merged 1 commit into
mainfrom
arena/01a102d6-scriptify

Conversation

@johanbeytell1

Copy link
Copy Markdown
Member

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.css began 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 1010px while the page inside it was 792px, and .main-content added up to 60px more per side — about 195px of dead space on each side of the text. The heading, card and page now share one --page-width measure (920px), the page fills the card, and main-content padding drops to clamp(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.html still used the pre-redesign markup and the old .button / .button2 / flex-c classes. 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.py calls updateProgressBar() and displayText() from Api.update_progress_bar() and Api.display_text(), but neither function existed in the page, so progress could never advance past the fake indeterminate animation. Both are implemented, and download_model() now reports coarse progress while the model downloads.

Also

  • Raised the 7–9px micro labels to a legible 10–12px scale and tightened the very wide letter-spacing that came with them; shared tokens for type, spacing, radii and the window-bar height replace the scattered values.
  • Bumped the displayed and packaged version to 1.2.1 beta and added a changelog entry. Easy to revert if you would rather ship this as 1.2.0.

Validation

  • CSS braces balance, no leftover references to the retired launch classes.
  • node --check passes on every script; main.py compiles.
  • Both HTML files parse with no unclosed tags.
  • Every new asset path verified to resolve (index.html, launch.html, both stylesheets, all four woff2 files).
  • Not verified visually: no headless browser could be installed in this environment (every Chromium mirror is network-blocked). Please give the running preview a look before merging.

…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>
@johanbeytell1
johanbeytell1 merged commit 70c9fba into main Oct 3, 2026
@johanbeytell1
johanbeytell1 deleted the arena/01a102d6-scriptify branch October 3, 2026 20:20
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