Skip to content

Fix overflowing text on the View as button and two form fields - #91

Merged
miguelr-dev merged 1 commit into
mainfrom
fix-text-overflow
Oct 28, 2026
Merged

miguelr-dev merged 1 commit into
mainfrom
fix-text-overflow

Conversation

@miguelr-dev

Copy link
Copy Markdown
Owner

Summary

Fixes text that didn't fit its box, starting with the View as button, and checks the rest of the site for the same problem.

  • Role switcher button: "Viewing as Department user / registrar" ran past both edges of the sidebar button. Buttons don't wrap, and the sidebar is only 200px wide between 900 and 1100px. The button now shows a short name ("Viewing as Registrar", "…Advisor", "…Student", "…Faculty"). The full name stays in the yellow banner and the button's tooltip.
  • Course history form: the Semester box was 108px wide in the side panel and cut off "Spring 2026". Semester now has its own row, with Units and Grade sharing the next.
  • Student information: Address is a two-line box, so a full street address is visible instead of cut off.

How the rest of the site was checked

A scan flags any element whose text is wider than its own box, whether it spills out or gets cut off. I first confirmed it catches the original bug (196px of text in a 166px button). Then:

  • Every screen (dashboard, search, class schedule, record, outline, majors, faculty and courses, grades, users, value lists, help screens) as admin, student, faculty, advisor and registrar, at 320, 375, 1024, 1280, 1440 and 1920px, plus the sidebar or Menu with the role list open: no issues.
  • All 23 panels and pop-ups (every add and edit form, the registration confirmation, report previews, Help) at 1280 and 375px: only the two form fields above, now fixed.

Test plan

  • npm run typecheck, npm test (158 pass), npm run build
  • The scans above, rerun after the fixes
  • Visual check of the button at 1050px (narrowest sidebar) while viewing as registrar

🤖 Generated with Claude Code

- The sidebar's role switcher showed "Viewing as Department user /
  registrar", which ran past both edges of its button. Buttons don't wrap,
  and the sidebar can be as narrow as 200px. It now shows a short role name
  ("Viewing as Registrar"); the full name stays in the banner and the
  tooltip.
- Correct / add course history: the Semester box was 108px wide inside the
  side panel and cut off "Spring 2026". Semester now has its own row, with
  Units and Grade sharing the next one.
- Student information: the Address field is a two-line box, so a full
  street address is visible instead of cut off.

Found by scanning for text wider than its box on every screen (as admin,
student, faculty, advisor and registrar, at 320-1920px), with the role menu
open, and in all 23 panels, report previews and Help, at desktop and phone
widths. After these fixes nothing else is reported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@miguelr-dev miguelr-dev self-assigned this Oct 28, 2026
@vercel

vercel Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
signmeup Ready Ready Preview Oct 28, 2026 7:07am UTC

@miguelr-dev
miguelr-dev merged commit e697ac1 into main Oct 28, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
Preview — 21ce2453 Deployed Oct 28, 2026 by vercel[bot]
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