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

Offset toastify when top bar is visible #5794

Merged
merged 1 commit into from
Jun 18, 2021
Merged

Conversation

PVince81
Copy link
Member

To avoid overlapping with the top bar, the toastify notification is
shifted down.

image

Doesn't look that fantastic though, wondering if we should move the notifications to the bottom instead. The latter might need more involved changes as it would require support for global toastify options in nextcloud-dialogs.

To avoid overlapping with the top bar, the toastify notification is
shifted down.

Signed-off-by: Vincent Petry <[email protected]>
Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

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

Feels hacky, but looks nice and does the job.

Approving but lets wait for a frontender to confirm

@PVince81
Copy link
Member Author

PVince81 commented Jun 18, 2021

a less hacky alternative would be to adjust nextcloud-dialogs to also pass the "offset" attribute through to Toastify, but then we also need to set it in every call to showMessage, maybe setup a wrapper function in Talk, or introduce global options for Toastify in nextcloud-dialogs for that.

@PVince81
Copy link
Member Author

tickets raised in nextcloud-dialogs:

@PVince81 PVince81 merged commit eddfeee into master Jun 18, 2021
@PVince81 PVince81 deleted the enh/noid/move-toastify-down branch June 18, 2021 07:39
@nickvergessen
Copy link
Member

Bildschirmfoto von 2021-06-21 14-55-13

@PVince81 need to adjust something or unluckily revert this.

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

Successfully merging this pull request may close these issues.

3 participants