Skip to content

feat(tui): widen the full timetable on large terminals - #119

Merged
m1ngsama merged 1 commit into
mainfrom
feat/wide-grid
Nov 19, 2026
Merged

m1ngsama merged 1 commit into
mainfrom
feat/wide-grid

Conversation

@m1ngsama

@m1ngsama m1ngsama commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

On a 150-column terminal the full timetable still used only 120 columns. It cut course names to "货币金融学(…" and "中级财务…", and empty days to "五 11…" and "日 11…".

  • The Schedule hub and the full timetable may now use up to 160 columns, centered as before. A new wideFrame() view hook requests the wider frame. Every other page, including the help overlay, keeps the 120-column reading width.
  • Grid columns are sized from their dated header, "五 11/20", so an empty day keeps its full date.
  • Terminals of 120 columns or fewer render as before at 100 columns. At 120 columns the hub already showed the week list, and the full timetable now shows it too, because the grid would cut names there.

Validation: npm run check passes, and the full test suite also passes with TZ=America/Los_Angeles. With the cached timetable, the grid shows no ellipsis at 150 or 170 columns. At 100 columns the hub and grid match main line for line.

@m1ngsama
m1ngsama changed the base branch from feat/muted-tier to main November 19, 2026 02:55
@m1ngsama m1ngsama closed this Nov 19, 2026
@m1ngsama m1ngsama reopened this Nov 19, 2026
@m1ngsama
m1ngsama merged commit 6e49bba into main Nov 19, 2026
4 checks passed
@m1ngsama
m1ngsama deleted the feat/wide-grid branch November 19, 2026 02:59
@m1ngsama m1ngsama mentioned this pull request Nov 19, 2026
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