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

When dragging to create event in weekly calender, show pop-up label Create event at the bottom of the event #1613

Merged

Conversation

troldmand
Copy link
Collaborator

Description

This PR solves #1574 by changing the position of the pop-up. When you drag down to create a event, the pop-up should appear close to where you release again, so even without the issue, I find this setting better.

But it also solves the issue, since the position of the pop-up will always be in view. When it was at the top, user would be able to scroll out of view of the position of the pop-up. The pop-up would thus appear outside of the calender.

Screenshots

Screenshot 2023-11-09 at 19 04 46

Before, it would go:
Screenshot 2023-11-09 at 19 05 26

And it is done, to fix this edge case situation:
Large GIF (380x672)

Notes to reviewer

I have made this assuming the only thing effected by it, would be this "drag down to create" feature in the weekly calender. Maybe consider, if the component is also used elsewhere, maybe make sure it's not ruining something else, somewhere else

Related issues

Resolves #1574

…ender event in weekly calender (when dragging)
@richardolsson
Copy link
Member

Great work on this @troldmand! I thought the solution would be much more complicated, so I'm glad you took this on and thought of this very simple fix. I think it looks good.

What do you think @ziggabyte (who opened the issue)?

@ziggabyte
Copy link
Contributor

What do you think @ziggabyte (who opened the issue)?

It seems to work as intended for my small screen also! :D Love a fix as easy as this!!

When playing around and trying to provoke the calendar a bit I did, however, run into a behaviour I have not gotten before. I don't think that it is relate to what you changed @troldmand so I'm going to create a separate issue for it: I can drag to create an event beyond the confines of the calendar.
bild

Copy link
Contributor

@ziggabyte ziggabyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We love a super simple fix!! So happy that you figured out that was not some deep complex drag-n-drop problem!!

@troldmand
Copy link
Collaborator Author

I noticed that as well, yeah. I will happily look into it, if you reference me the issue ticket here when you have created it :)

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 this pull request may close these issues.

Menu to create event by dragging in weekly calendar appears in header.
3 participants