Context
In PR #1713, a fix was implemented to address overlapping textarea inputs in the CustomerInfo component by adding responsive behavior that adjusts the number of rows based on viewport width.
Current Implementation
The fix is currently implemented in zmscitizenview/src/components/Appointment/CustomerInfo.vue with:
- A
windowWidth ref that tracks window size via resize listener
- A
textfieldRows computed property that returns 6 rows when viewport width ≤ 500px, otherwise 3 rows
- This value is bound to the
rows property of MucTextArea components
Proposed Change
Move this responsive behavior directly into the MucTextArea component in the @muenchen/muc-patternlab-vue library so that:
- All consumers benefit from responsive textarea behavior automatically
- The logic is centralized in the component library
- Consumer components don't need to implement this workaround
References
Context
In PR #1713, a fix was implemented to address overlapping textarea inputs in the CustomerInfo component by adding responsive behavior that adjusts the number of rows based on viewport width.
Current Implementation
The fix is currently implemented in
zmscitizenview/src/components/Appointment/CustomerInfo.vuewith:windowWidthref that tracks window size via resize listenertextfieldRowscomputed property that returns 6 rows when viewport width ≤ 500px, otherwise 3 rowsrowsproperty of MucTextArea componentsProposed Change
Move this responsive behavior directly into the
MucTextAreacomponent in the@muenchen/muc-patternlab-vuelibrary so that:References