compose: Allow flatpickr to automatically choose the direction.

Previously the flatpickr was always set to show at the top but this
led to it being cut off when the message was at the top of the
screen -- should happen only when someone is editing a message.
This commit is contained in:
Satyam Bansal
2023-07-10 01:46:11 +05:30
committed by Tim Abbott
parent 63be67af80
commit 9f1fcfb3a7

View File

@@ -734,8 +734,8 @@ export function initialize() {
on_timestamp_selection,
get_timestamp_for_flatpickr(),
{
// place the time picker above the icon and center it horizontally
position: "above center",
// place the time picker wherever there is space and center it horizontally
position: "auto center",
},
);
}