Repository navigation
Clamp the lock screen's password field to the screen width - #11244
SimonSchubert wants to merge 3 commits into
Conversation
LockView sets fieldWidth to a fixed 381. The field is centred on the screen, so on a screen narrower than that it is wider than the screen itself: at 360 logical it runs from x=-11 to x=370, and its outline and rounded corners are cut off on both sides, leaving what reads as a full-width band. The field is now clamped to the screen width less Style.gapsOut on each side, the same margin the polkit and reminder cards already leave with panel.width - Style.gapsOut * 2. root.width is 0 until the lock surface is sized, so the clamp only applies once it has a real width. On a desktop Math.min returns 381 and the field is unchanged. Verified in a 720x1440 VM at scale 2 (360 logical), where the field clamps to 350 with 5px on each side, and at 1920x1080, where it stays 381 and the lock screen matches the unpatched one to within llvmpipe's anti-aliasing.
|
Reviewed and verified on a worker VM built from the Omarchy ISO, with this branch merged onto current
This was reviewed by Claude Opus 5.5 alone. No second opinion ran: the reviewer (Codex Medium) answered a ping, but today's review budget was already spent, so it will be reviewed on a later run. It waits on that second opinion, then on the maintainer. |
quattro moved the placeholder text into I18n on the line beside fieldWidth; keep both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This no longer merged with Re-verified at that commit on a worker VM built from the Omarchy ISO, running the shell from this branch:
Reviewed by Claude Opus 5.5 and by Codex Medium as a second opinion. Codex confirmed the merge keeps every Nothing is left for the author; this waits on the maintainer. |
|
CI follow-up at On a disposable Omarchy ISO worker, the structural i18n test fails at locale generation with the same permission error on this head and its merge base; the English-literal scan passes on both. Current Checked by Codex High, with second opinions from Opus 5.5 High and muse-wonder via pi (thinking high). Both found no defect in the field-width change; their recommendations about pushing a CI-refresh merge differed. I left it unpushed because current base CI is red. Opus also highlighted that the historical workflow used Ubuntu, so the installed-helper failure on the ISO worker does not establish that run's cause. Reviewer agreement is not guaranteed to be independent. |
[Low impact] The PR appears safe to merge. SummaryClamps the lock screen’s password field to the available width, leaving
Reviews (1) · Last reviewed commit: "Merge remote-tracking branch 'origin/qua..." · Reviewed by Greptile |
|
Codex High tested Opus 5.5 High and muse-wonder via pi, thinking high found no blocking issues in the code review. The two Actions runs need a maintainer’s approval before they can run. Tests · Check translation structure |


The lock screen's password field is wider than any screen narrower than it, so its outline and rounded corners are cut off on both sides.
LockViewsetsfieldWidth: 381, a fixed width on a field anchoredcenterIn: parent. At 360 logical the field runs from x = −11 to x = 370. Its left and right borders are off-screen, so it reads as a full-width band:The change
Clamp the field to the screen, less
Style.gapsOuton each side. That's the same margin the polkit and reminder cards already leave withpanel.width - Style.gapsOut * 2:root.widthis 0 until the lock surface is sized. The guard keeps the field at 381 until then, instead of a negative width.Why it's safe
Math.minreturns 381 and the field is unchanged.passwordInput.width, which follows the field, so long passwords still stay visible in a narrower field.Verification
Per
agents/skills/visual-verification.md, reference and candidate captures ofomarchy-shell lock preview:The VM runs a v4.0.3 shell, where
LockViewpredatesBackgroundMedia. To test this exact file rather than a backport, I addedBackgroundMedia.qmlandUtil.isVideoPathfromquattrofor the test. The field code is identical in both versions.A companion to #11034 and #11238, found the same way on a phone-shaped screen. Like those, it's a narrow-screen robustness fix rather than a mobile-specific one.