Skip to content

Fit the multilevel feedback queue timeline on phones - #107

Open
A7med7x7 wants to merge 2 commits into
mainfrom
autopilot/fit-mlfq
Open

A7med7x7 wants to merge 2 commits into
mainfrom
autopilot/fit-mlfq

Conversation

@A7med7x7

Copy link
Copy Markdown
Member

From the 390 px audit in #78: the "Multilevel feedback queue" timeline in Operating Systems round-robin-and-beyond had a 420 px minimum width, 120 px too wide for a phone.

Fix

  • The 420 px minimum now applies only from sm up. On a phone, the narrowest slice with the default jobs (D's 4 of 77 ms) is about 16 px, enough for its letter. Measured slice widths: 19, 31, 31, 31, 46, 62, 15 and 62 px.
  • Each slice clips its label (overflow-hidden), so a 1 ms burst typed in by a reader can't spill its letter over the neighbouring slice.

Checked with Playwright at 390 px (light and dark) and 1280 px after the animation finishes: 0 px overflow inside the panel.

The page as a whole still overflowed by 23 px. That came from the site footer, not this lesson; it's fixed separately in #106.

npm run lint: 0 errors. npm run test: all pass. npm run build: OK.


Generated by Claude Code

The MLFQ demo in round-robin-and-beyond drew its timeline with a
420 px minimum, 120 px wider than a 390 px phone. The minimum now
applies from sm up; on a phone the narrowest default slice (D's 4 of
77 ms) is still about 16 px, enough for its letter, and each slice
clips its label if a reader types a tiny burst.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EC6Zzt5akQu7TEHdGquZzp
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EC6Zzt5akQu7TEHdGquZzp

This branch has not been deployed

No deployments
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.

2 participants