Skip to content

Narrow the keyboard lock panel when its labels are hidden - #814

Merged
dormancygrace merged 1 commit into
mainfrom
fix/keyboard-led-narrow
Nov 11, 2026
Merged

dormancygrace merged 1 commit into
mainfrom
fix/keyboard-led-narrow

Conversation

@dormancygrace

Copy link
Copy Markdown
Owner

Below the sm breakpoint the Num/Caps/Scroll labels are hidden (hidden sm:inline), but the panel kept its fixed 40 px width. It is now 16 px there: an 8 px dot with 4 px padding on each side.

Taken from sipeed/NanoKVM#985. Its restyling (monospaced font, another green, a letter inside the dot) is left out.

Checked with prettier only. Not looked at in a browser: the panel is not shown on my test device.

🤖 Generated with Claude Code

Below the sm breakpoint the Num/Caps/Scroll labels are hidden but the
panel kept its 40 px width. Make it 16 px there, the width of a dot
with its padding.

Taken from sipeed/NanoKVM#985; its restyling is left out.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Build outputs

Compared with the build of main at d4cd730.

1 changed, 210 added, 210 removed of 675 outputs.

directory files
changed web web/index.html
added web 210 files
removed web 210 files
Hashes: outputs-sha256 artifact of this run.

@dormancygrace dormancygrace left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 8594304. No blocking findings.

The 16 px narrow width matches the 8 px indicator plus 4 px padding on each side. The existing sm breakpoint restores 40 px at exactly the point where the labels become visible; indicator state, accessible labels and tooltips are unchanged.

Web UI CI, CodeQL and the full firmware build passed. This was a source/layout review; no browser or device rendering check was performed.

@dormancygrace
dormancygrace merged commit 6edc3da into main Nov 11, 2026
16 checks passed
@dormancygrace
dormancygrace deleted the fix/keyboard-led-narrow branch November 11, 2026 17:58
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