-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Grid Track Labels and Resize Indicators (#6566)
# **Problem:** The grid labels and the grid resize indicators are in a state of being fucked: ![image](https://github.com/user-attachments/assets/e68f433a-93e5-4f3a-92c7-a53764357651) ![image](https://github.com/user-attachments/assets/d2347204-9ae4-48de-bc5f-31592f81e751) ![image](https://github.com/user-attachments/assets/c0105ee6-793e-48d1-b68b-b2f9eb6f64e2) # **Goal:** Fix the various layout issues, and make the labels subdued until hovered. The hovered label should z-index over its siblings: ![image](https://github.com/user-attachments/assets/52b0f170-6d6b-4fed-8290-1eb6f9a022c8) # **Fix:** <img width="566" alt="image" src="https://github.com/user-attachments/assets/ade0a053-321f-438c-a9e2-d8538f5be293"> ![image](https://github.com/user-attachments/assets/9cb73a40-b205-45c8-a43f-2f1aae5ff6bf) **Commit Details:** - Split `GridResizingControl` into `GridTrackSizeLabelForDimension` and `GridResizingStripedIndicator` - Render _two_ helper grids, one for the label and one for the sizing indicator. This avoids future css intermingling problems, going forward bug fixing one should not meaningfully affect the other. - The helper grids use the blessed `getGridHelperStyleMatchingTargetGrid` style instead of manually picking an assortment of relevant grid properties. This simplifies our life 97% **Note:** The code could be further simplified, as this is now a copy-paste job. I tried to remove the obviously unnecessary things, but there's still a little too much div wrappers going on. **Manual Tests:** I hereby swear that: - [ ] I opened a hydrogen project and it loaded - [ ] I could navigate to various routes in Play mode
- Loading branch information
1 parent
94e028a
commit 132c7d5
Showing
3 changed files
with
136 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters