VSN-1999 : Dynamising prepared passenger table footer based on the width of the drawer.
MR Title
Dynamising prepared passenger table footer based on the width of the drawer.
Overview
This merge request introduces full drawer-width awareness across several UI components involved in the display of the prepared passengers table. The goal is to guarantee consistent layout adjustments, especially when the drawer is resized, ensuring that pagination controls, manager containers, and selected-rows indicators adapt responsively.
Scope of Changes
The implementation focuses on:
- Defining width parameters in components that previously relied on static dimensions.
- Dynamically applying layout styles based on the current drawer width.
- Ensuring that parent views propagate the correct width value to all dependent child components.
Detailed Changes
1. feat: Width param defined in Table Manager
A new width parameter is introduced into the TableManager component.
This allows the manager container to adjust its internal layout and reserved space according to the current drawer width.
2. feat: Defining width param in table footer
The pagination footer component (table footer) now receives a drawer width parameter.
This ensures that pagination elements and selection indicators remain properly positioned when the drawer size changes.
3. feat: Dynamising applied styles
Dynamic style application was added to:
- The wrapper
Boxof the table manager footer - The secondary sub-element that displays the “selected rows” indicator
These elements now react to the drawer width, preventing layout collisions and improving responsiveness in compact or expanded drawer states.
4. feat: Invocations
The drawer width value is now passed from:
- UsagerDupListView
- TableManager
This completes the width propagation chain and ensures all components share a consistent width reference.
Result
With these changes:
- The table manager and table footer adapt fluidly to drawer width adjustments.
- No overlapping or misaligned UI occurs when the drawer transitions between sizes.
- Future enhancements related to drawer responsivity can be easily integrated thanks to the unified width-propagation design.
Closes VSN-1999