Skip to content

fix(tui): keep the week heading's gap in short terminals - #120

Merged
m1ngsama merged 1 commit into
mainfrom
feat/compact-sections
Nov 19, 2026
Merged

m1ngsama merged 1 commit into
mainfrom
feat/compact-sections

Conversation

@m1ngsama

@m1ngsama m1ngsama commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

When the Schedule hub ran one row short, it removed every blank line at once, so the next-class banner, today's timeline, and the week list ran together with no break.

Blank lines are now removed one at a time, starting with the one under the next-class banner. At 60×24 with a real timetable, the hub keeps the gap above "本周" and still fits the whole week. All gaps go only when one row is not enough.

Validation: npm run check passes, and the full test suite also passes with TZ=America/Los_Angeles. The new test fails on the old code.

@m1ngsama
m1ngsama force-pushed the feat/compact-sections branch from 529f07a to 7bfed0c Compare November 19, 2026 02:58
@m1ngsama
m1ngsama changed the base branch from feat/wide-grid to main November 19, 2026 02:58
@m1ngsama m1ngsama closed this Nov 19, 2026
@m1ngsama m1ngsama reopened this Nov 19, 2026
@m1ngsama
m1ngsama merged commit f60dde2 into main Nov 19, 2026
4 checks passed
@m1ngsama
m1ngsama deleted the feat/compact-sections branch November 19, 2026 03:01
@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