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

Date not visible when screen too small #76

Closed
Dirvann opened this issue May 26, 2023 · 3 comments · Fixed by #90
Closed

Date not visible when screen too small #76

Dirvann opened this issue May 26, 2023 · 3 comments · Fixed by #90

Comments

@Dirvann
Copy link

Dirvann commented May 26, 2023

When selecting the date, the date box becomes too small on a small screen.
Solution would be to modify the underlying DateTime helper plugin with css.

Current:

image

Wanted:

image

Adding "flex-direction: column" to the div surrounding the date and time boxes works. But I don't know how to implement this in the code:

image

@ComfortablyCoding
Copy link
Contributor

That component is from the strapi design system which unfortunately is not responsive yet. I will see if I can add some custom CSS to fix it in the meantime.

@Dirvann
Copy link
Author

Dirvann commented May 31, 2023

Indeed I might make a PR on the strapi design system for the component to have that fix included.

Custom css would be amazing! Thanks

@ComfortablyCoding
Copy link
Contributor

ComfortablyCoding commented Jul 25, 2023

I had a try at this and unfortunately the DateTimePicker (the component being used here) does not seem to support classNames or custom css. This makes it impossible to apply any customs style. We will need to wait for strapi/design-system#860

Will see if I can find any workaround, closing for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants