Skip to content

Commit 3a2a52c

Browse files
dathbeveeck
andauthored
Add CSS to clock module to prevent line breaking of sunrise/sunset information (#3816)
1. Base your pull requests against the `develop` branch. Done 2. Include these infos in the description: - Does the pull request solve a **related** issue? No - If so, can you reference the issue like this `Fixes #<issue_number>`? N/A - What does the pull request accomplish? Use a list if needed. With some combinations of sunrise and sunset times (usually when the time till rise/set is >9:59), the information will break across multiple lines. This prevents that by adding CSS. - If it includes major visual changes please add screenshots. I don't consider it major. 3. Please run `npm run lint:prettier` before submitting so that style issues are fixed. Done 4. Don't forget to add an entry about your changes to the CHANGELOG.md file. Done --------- Co-authored-by: veeck <[email protected]>
1 parent 855b1d7 commit 3a2a52c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
planned for 2025-10-01
1313

14+
Thanks to: @dathbe.
15+
16+
### Changed
17+
18+
- [clock] Add CSS to prevent line breaking of sunset/sunrise time display (#3816)
19+
1420
### Updated
1521

1622
- [core] Update dependencies including electron to v37 (#3831)

modules/default/clock/clock_styles.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,17 @@
8787
transform-origin: 50% 100%;
8888
}
8989

90+
.module.clock .digital {
91+
display: flex;
92+
flex-direction: column;
93+
gap: 3px;
94+
}
95+
9096
.module.clock .sun,
9197
.module.clock .moon {
9298
display: flex;
99+
white-space: nowrap;
100+
gap: 10px;
93101
}
94102

95103
.module.clock .sun > *,

0 commit comments

Comments
 (0)