Repository navigation
Conversation
|
Thanks for the PR! Can you attach a before and after screenshot? |
|
I am not sure if changing the order is a good idea. Our users are used to how this is ordered now, changing it might confuse some... But I am willing to see the change in screenshots, before making up my mind finally... |
|
@MannXo Did you noticed the request for screenshots? 🙂 |
|
@KristjanESPERANTO thank you for the reminder. |
|
@MannXo Thanks for the screenshots 🙂 Please mark which is which. I think the first is the "after" one, right? |
|
@KristjanESPERANTO indeed. |
|
@rejas What do you think? |
|
Sorry for my late answer... Thanks fro your PR. I could see something like this merged, IF we could make the order configurable. So that people could arrange them to their likings. Maybe using a flex order css property would be the solution (so people could change that order via custom css) |
|
@MannXo Did you noticed the last comment? 🙂 |
|
@KristjanESPERANTO I feel I can do that. shall I create an issue for it first? or shall I just revert my commits on this branch and implement the flex? |
|
I think it would be best to do it in this PR here. When we merge, we'll squash all the commits into one, so you don't have to worry too much about keeping the Git history clean 🙂 |
|
@rejas @KristjanESPERANTO The forecast table now has a example: |
|
Thanks for the updated approach 👏 Two concerns though:
What do you think? |
|
@MannXo Did you noticed my comment? 🙂 |
1e4c168 to
4c0a3a5
Compare
|
Okay, I decided to take this on myself since there hasn’t been any response from @MannXo so far. Migrating the forecast layout to CSS Grid was a bit tricky, but I think the result is now clean and stable. For consistency, I adapted the hourly view as well. I added screenshots into the PR text. While checking the current view, I noticed that an incorrect |
## Release Notes Thanks to: @ago1776, @alkank, @Antra, @Blackspirits, @deBasMan21, @flightlesstux, @i-xul, @jamalkamaladdin, @khassel, @KristjanESPERANTO, @MannXo, @pascalpfammatter, @rejas >⚠️ This release needs nodejs version >=22.22.2 <23 || >=24 [Compare to previous Release v2.37.0](v2.37.0...develop) ### [core] - Prepare Release 2.38.0 (#4285) - fix: let Electron select the Wayland display (#4268) - fix(http): improve access error messages (#4281) - fix: always redact client configuration (#4275) - refactor: migrate browser scripts to ESM (#4272) - refactor: convert animateCSS to ES module (#4266) - use filter instead of find to get all allowed secrets when multiple instances of a module are active (#4265) - refactor: convert notificationFx to ES module (#4263) - refactor: enforce function expression style (#4262) - fix: validate client IP behind trusted proxies (#4261) - prefer arrow over function (#4252) - refactor(utils): simplify configuration validation and error handling (#4240) - fix(server): validate request origins (#4234) - remove codeql warning (#4231) - refactor(socket): use direct ESM import in main (#4225) - refactor(socket): load Socket.IO client via ESM (#4224) - style: simplify Electron startup checks (#4213) - refactor: consolidate electron bootstrap into async function (#4210) - refactor(module): simplify and fix configMerge (#4203) - refactor: convert Translator to ES module (#4202) - docs: add CodeQL review steps and restructure after-release checklist (#4200) - refactor: centralize server port resolution (#4198) - refactor: use const instead of let for variable declarations (#4196) - refactor: replace Loader object with named exports (#4195) - set next release dev number - refactor(eslint): enforce prefer-arrow-callback rule (#4251) - refactor(http_fetcher): make dynamic URL handling explicit (#4282) - refactor: use explicit global config (#4233) - expand logic of hideConfigSecrets, add more tests (#4229) - refactor: make browser startup more explicit (#4214) ### [dependencies] - update dependencies (#4276) - update dependencies incl. electron to v44 (#4250) - chore: update eslint incl. plugins + review rules (#4236) - Bump actions/stale from 10 to 11 (#4215) - update dependencies (#4221) - Bump actions/setup-node from 6 to 7 (#4204) - chore: update dependencies (#4201) - Bump electron from 42.5.2 to 43.0.0 (#4192) ### [modules/alert] - Move alert translations into common translations (#4284) ### [modules/calendar] - Fixes issue 4243: Ensure while loop in calendar module does not get stuck when no entries (#4244) - fix(calendar): escape HTML in event title and location (#4260) - calendar: allow custom events to override symbol class (#4257) - Fix calendar crash when yearmatchgroup regex does not match (#4239) - fix(calendar): keep yearly events in DTSTART's month when BYMONTH is missing (#4222) - fix(calendar): correct multi-day slice day counts (#4232) - chore: update dependencies + adapt calendar tests (#4211) - fix(calendar): sliced multi-day events start at 00:00, not 23:59 (#4208) ### [modules/newsfeed] - newsfeed: don't use cors url in njk template (#4279) - refactor(newsfeed): extract feed item normalization into feeditem.js (#4271) - refactor(newsfeed): replace feedme lib with feedparser (#4269) - newsfeed: fix allowedBasicHtmlTags (#4258) - newsfeed: update checkArticleUrl (#4256) ### [modules/updatenotification] - feat(updatenotification): implement trusted module configuration for update commands (#4259) ### [modules/weather] - feat: add FMI weather provider (#4278) - feat(weather): enable CSS ordering for forecast and hourly columns (#4118) - fix(weather): respect initial load delay (#4254) - fix(weather): restrict provider loading to the providers directory (#4235) - refactor(weather): extract WeatherProvider base class (#4228) ### [testing] - ci: fail lint on warnings (#4230) - add test if install works for minimal node version (#4197) ### [translation] - feat(i18n): add Azerbaijani translation (#4283) - feat(i18n): complete Turkish translations (#4277) - Improve Portuguese translations (#4274) --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Kevin G. <[email protected]> Co-authored-by: veeck <[email protected]> Co-authored-by: Veeck <[email protected]> Co-authored-by: Karsten Hassel <[email protected]> Co-authored-by: Jboucly <[email protected]> Co-authored-by: Jboucly <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jarno <[email protected]> Co-authored-by: sam detweiler <[email protected]> Co-authored-by: Jordan Welch <[email protected]> Co-authored-by: Blackspirits <[email protected]> Co-authored-by: Samed Ozdemir <[email protected]> Co-authored-by: in-voker <[email protected]> Co-authored-by: Andrés Vanegas Jiménez <[email protected]> Co-authored-by: cgillinger <[email protected]> Co-authored-by: Sonny B <[email protected]> Co-authored-by: sonnyb9 <[email protected]> Co-authored-by: Morgan McBee <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]> Co-authored-by: Mike Bishop <[email protected]> Co-authored-by: ago1776 <[email protected]> Co-authored-by: pascalpfammatter <[email protected]> Co-authored-by: Pascal Pfammatter <[email protected]> Co-authored-by: Anders Demant van der Weide <[email protected]> Co-authored-by: Bas Buijsen <[email protected]> Co-authored-by: Parman Mohammadalizadeh <[email protected]> Co-authored-by: alkank <[email protected]> Co-authored-by: Henkka <[email protected]> Co-authored-by: Ercan Ermis <[email protected]> Co-authored-by: Jamal Kamaladdinoglu <[email protected]>
Since the switch to CSS grid (MagicMirrorOrg#4118) the forecast and hourly views always define seven column tracks and are rendered as a block-level grid: - The tracks of disabled fields are empty, but the rows (subgrids) still add half of their 25px column gap after the last visible column. So every view ends with 12.5px of blank space and is not flush with the right edge in the right regions. - A view that is narrower than its region (e.g. the hourly view below a wider forecast) ignores the text alignment of the region and sticks to the left edge, also in the right and centered regions. The templates now pass the number of enabled columns in a --weather-columns custom property, which the grid uses for its track count (falling back to 7 for custom templates). The grid is rendered inline so it again follows the region's text alignment, like the former tables did.


The daily forecast previously displayed its columns in a fixed order that did not match the order requested in the issue.
This PR makes the forecast column order configurable through CSS custom properties. The default order is now:
condition, min temp (low), max temp (high), UV Index, precipitation amount, precipitation probability
The hourly forecast is updated to use the same approach, with its own configurable column order.
min-tempbeforemax-temp(low before high, per [Change Request] Weather forecast: Low before High Temperature #4116)<tr>in the current weather view with a<div>Fixes #4117
forecast before
forecast after
hourly before
hourly after
Note: The PR was updated based on reviews, and the PR text was updated accordingly.