WIP: Fixed screen root style bug#389
Conversation
|
Analysis of #389 What the PR changes: Only one functional file — assets/client/components/screen.jsx. It removes a swap in the rootStyle object: // Before (current code on this branch, screen.jsx:29-30) // After That looks like an obvious bug fix. But in this codebase it isn't safe in isolation — it will visibly break the existing layouts in assets/shared/screen-layouts/. Why the current "swap" is load-bearing The two halves of the rendering pipeline are both swapped, so they cancel out:
Concrete effect of the PR on each shipped layout Walking through with configColumns/configRows taken literally from the JSON: │ Layout │ JSON rows/cols │ gridTemplateAreas produced │ Buggy tracks (today) │ Fixed tracks (PR) │ Any layout where rows ≠ columns will get explicit-track counts that don't match grid-template-areas. The browser then falls back to implicit tracks for the area letters and leaves empty explicit tracks for the rest — i.e. regions render at the wrong size or position, often So, will the PR change how existing layouts render? Yes. Symmetric layouts (full-screen, four-areas, three-boxes 2×2) will be unaffected, but every asymmetric layout in assets/shared/screen-layouts/ (the two-boxes, the horizontal three-boxes, the vertical splits, six-areas, touch-template) will misrender. The PR fixes one of |
Link to ticket
https://leantime.itkdev.dk/#/tickets/showTicket/7203
Description
Fixed screen root style bug: Columns and rows have been switched.
Checklist