activeadmin-plugins / active_admin_datetimepicker

:calendar: active_admin_datetimepicker gem
MIT License
72 stars 48 forks source link

Incorrect alignment on very wide pages #27

Closed aselder closed 7 years ago

aselder commented 7 years ago

With very wide active admin pages, when using the date_time_range filter, the positioning of the date picker can be off.

See the attached picture. I have an even wide page where when you click on the filter, it looks like nothing happens because the date picker is off screen.

screen shot 2016-12-14 at 7 51 39 am
Fivell commented 7 years ago

@aselder , test app with reproducing of this bug will be very helpful, thanks

aselder commented 7 years ago

@Fivell Sure thing.. May take a day or two, but I'll create a stripped down app for you.

fargood commented 7 years ago

@aselder, just add to a custom scss:

body.active_admin .xdsoft_datetimepicker {
  min-width: 320px;
}
Fivell commented 7 years ago

@workgena , what do you think ?

workgena commented 7 years ago

as jquery plugin DateTimePicker allows to use it just for Date or just for Time. Theoretically someone could setup this plugin with such options using config/initializers. In this case "min-width 320px" could be a problem.