fix: homepage customizabl layout#2709
fix: homepage customizabl layout#2709rohitratannagar wants to merge 1 commit intoredhat-developer:mainfrom
Conversation
Signed-off-by: rohitratannagar <rohitratannagar2003@gmail.com>
Changed Packages
|
Review Summary by QodoFix customizable homepage layout responsiveness
WalkthroughsDescription• Adds container-based responsive layout detection via useContainerQuery hook • Enables window resize event dispatch when container width changes • Wraps grid layouts with container ref to track width changes • Fixes responsiveness issues in customizable homepage grid Diagramflowchart LR
A["useContainerQuery Hook"] -->|"notifyWindowResize option"| B["Dispatch window resize event"]
B -->|"Triggers remeasure"| C["react-grid-layout WidthProvider"]
D["CustomizableGrid Component"] -->|"Uses hook with ref"| A
E["CustomizableGridLayout Component"] -->|"Uses hook with ref"| A
D -->|"Wraps grid in container"| F["Container div with ref"]
E -->|"Wraps grid in container"| F
File Changes1. workspaces/homepage/plugins/dynamic-home-page/src/hooks/useContainerQuery.ts
|
Code Review by Qodo
1. Resize event spam
|
|



Hey, I just made a Pull Request!
Description
Fixes the customizable home page grid not updating its layout when the main content column changes width without a browser viewport resize (for example when the RHDH docked drawer opens or closes).
UI before changes
UI after changes
Screen.Recording.2026-04-07.at.2.16.52.PM.mov