Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsive inline calendar #993

Closed
solidevolution opened this issue Sep 18, 2024 · 0 comments
Closed

Responsive inline calendar #993

solidevolution opened this issue Sep 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@solidevolution
Copy link

When using the datepicker in inline mode, the component is not responsive. This leads to layout issues on smaller screens, such as mobile devices. Users have to scroll or zoom in/out to interact with the datepicker, which results in a poor user experience.

I would like the datepicker to be responsive in inline mode. This could be achieved by:

  • Adapting the size of the datepicker to fit the width of the container or screen.
  • Automatically adjusting the layout (e.g., compacting the calendar or allowing for flexible column and row layouts).
  • Ensuring that the datepicker remains fully interactive and accessible on smaller screens without requiring additional user effort.

Actual its possible to manually adjusting the size and CSS properties through css variables, but this solution is not responsive. A hack for me was the following but this isn't a good solution, more a bad hack!

  &.inline {
    &:deep(.dp__flex_display) {
      &:deep(> div:last-child) {
        width: 100%;
      }
    }

    &:deep(.dp--tp-wrap) {
      max-width: 100%;
    }
  }
@solidevolution solidevolution added awaiting triage The issue is not reviewed by the maintainers enhancement New feature or request labels Sep 18, 2024
@Jasenkoo Jasenkoo removed the awaiting triage The issue is not reviewed by the maintainers label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants