Repository navigation
feat(lock): add vertical clock style - #3220
Conversation
|
/claude review |
| spacing: 0 | ||
|
|
||
| ClockDigitText { | ||
| width: 75 |
There was a problem hiding this comment.
The blank leading hour slot keeps its 75px width, so single-digit hours end up off-centre.
getEffectiveTimeFormat() returns "h:mm AP" by default (12h clock, padHours12Hour defaults to false), so hours is a single character for 1–9. This slot then renders empty text but still reserves 75px, making the Row 150 wide with the hour digit in the right half — it sits above the minutes digit instead of centred over the pair.
The horizontal row above handles this by collapsing the slot (width: clockText.hours.length > 1 ? 75 : 0); same fix applies here.
| width: 75 | |
| width: clockText.hours.length > 1 ? 75 : 0 |
Claude reviewSolid, self-contained addition — one layout defect with the default 12-hour clock.
Checked: setting wiring (SettingsData/SettingsSpec/search index regenerates consistently, tabIndex 11 + alphabetical placement correct), |
|
/claude review |
Claude reviewNo issues found. Checked: the previous finding (blank 75px leading hour slot pushing single-digit hours off-centre) is fixed in |
Adds a vertical clock layout option to the DMS lock screen. Users can switch between horizontal and vertical layouts from Settings > Lock Screen; the style selector is hidden when system time display is disabled.
The vertical layout keeps the existing time-format state, displays hour and minute digits in stacked rows, and preserves seconds/AM-PM information below when enabled.
Closes #2200