-
Notifications
You must be signed in to change notification settings - Fork 26
feat: Add 12-hour clock format support to TimeCard #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -22,7 +22,11 @@ | |||||
| {{ timeString }}<span | ||||||
| class="seconds-text" | ||||||
| :style="secondsStyle" | ||||||
| >{{ secondsString }}</span> | ||||||
| >{{ secondsString }}</span><span | ||||||
| v-if="use12hClock" | ||||||
| class="ampm-text" | ||||||
| :style="secondsStyle" | ||||||
| > {{ amPmString }}</span> | ||||||
|
||||||
| > {{ amPmString }}</span> | |
| >{{ amPmString }}</span> |
Copilot
AI
Mar 22, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fullscreen AM/PM span also includes a leading literal space (> {{ amPmString }}) while .fullscreen-seconds already has margin-left: 4px;. This can cause unintended extra spacing; keep spacing in CSS or template, but not both.
| > {{ amPmString }}</span> | |
| >{{ amPmString }}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class="ampm-text"is introduced for the AM/PM span, but there is no corresponding.ampm-textrule in this component’s scoped styles. Either add a style (if you intend to differentiate AM/PM) or drop the class to avoid dead/unused selectors.