Skip to content

Move responsive textarea rows behavior to muc-patternlab-vue #1770

Description

@coderabbitai

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:

  1. All consumers benefit from responsive textarea behavior automatically
  2. The logic is centralized in the component library
  3. Consumer components don't need to implement this workaround

References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions