-
Notifications
You must be signed in to change notification settings - Fork 92
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
[2.6] Actions menu misplaced, scrolling not possible #1384
Comments
So I presume that this problem arises because the container of the popover is hard coded to be the body https://github.com/nextcloud/nextcloud-vue/blob/master/src/components/Actions/Actions.vue#L121 I think that by appending it to the parent element (the toggle), would solve this issue . We should keep the body as boundaries element though. |
It needs testing. No idea here |
I guess this would fix this particular issue. But I would be careful to not reintroduce things like this: |
How about adding a prop for container, so the dev can decide where it should be attached? We keep the default as I think the actual problem is, that |
Ok, so the main problem is the However, the popover would still flutter while scrolling and the viewport would jump to the top when opening the popover while scrolled down. With #1389 and setting the container to |
While looking at this, I just realized the status select popover has the same problem: I created an issue in server nextcloud/server#22606. |
Thinking about it, it might be better to not use |
This is indeed more critical than I thought. Using |
I think the solution is to set html, body {
min-height: 100%;
} for the server https://github.com/nextcloud/server/blob/master/core/css/styles.scss#L31-L33 instead of #1389 is still necessary to prevent the fluttering of the actions popover, but that's only a small annoyance. |
I created a PR in the server repo nextcloud/server#22614. Please test this thoroughly. |
Could we get a bit of feedback here? I think this is really an important issue, because it affects every popover / action menu for every vue app and additionally every vue popover in server. While scrolled down none of them opens and they move out of the viewport when scrolling. @nextcloud/designers @nextcloud/vuejs |
I'm personally cold feet towards big late css changes like those. |
I am also not very happy about that. But I think leaving the actions popovers broken is not an option either. If someone finds another solution without CSS changes for the server, I am all in. |
Not really fixed as long as nextcloud/server#22614 is not merged. |
Fixed in server now. |
How should we handle this for older server versions than 20? When you update nextcloud-vue for your app, the Actions will only work by default on NC20, but break on older server versions (as long as you don't manually select a proper boundaries-element). We either have to advise the devs to adjust the boundaries-element to something like |
Since nextcloud/server#22614 creates trouble, we probably have to revert it nextcloud/server#22773. So I reopen this here. |
I tried to find another solution than setting I will adjust all Actions in the Tasks app to use |
Sadly, I have to revert this statement. It is not possible to fix all I know bugs can happen, as I have introduced enough bugs for multiple releases of vue-components lately myself 🙈 , but deciding to not fix such an impacting problem until the next major server release with Nextcloud 21 is not satisfying. This practically means that there will be no new release of Tasks for NC20, as every new release will have broken I am happy to hear any workaround or real solution for the problems described, I just haven't found any myself so far. |
Ok, I don't know why I didn't realize this earlier, but I can just add these lines to the app for which the Actions are broken, and it's fixed: body {
min-height: 100%;
height: auto;
} This doesn't break anything for the rest of Nextcloud and fixes the problem for now. I will create a PR for Tasks and I guess every app which also has this problem can just add this for now. For sure not ideal, but it works. Sorry for the fuzz. 🙈 |
Thank you so much for your work! This fixed the issue for me for the rewrite of the Radio app. |
@onny if you're on latest master or 20, this is already into server, if you use the proper templates to render you page, it should not require you to have this into the radio app |
I guess we can close then |
@skjnldsv This is not in server yet, neither master https://github.com/nextcloud/server/blob/master/core/css/styles.scss#L17-L41 nor 20. We had to revert the respective PR, since it caused issues with Talk. |
I guess now would be the right time to indeed fix it in master and adjust Talk. |
Ah sorry Raimund, I forgot! Thanks for reminding me :) |
To revert if the issue is fixed in server or vue-components Ref.: nextcloud-libraries/nextcloud-vue#1384 Signed-off-by: Jonas Rittershofer <[email protected]>
Can we fix this for the NC27 circle? |
What are you referring to? |
Well, I stumbled over comments in some apps referring to this issue, and as I did not test if those workarounds are still needed, and from the discussion above, I thought this issue is still affecting apps. So maybe this issue can be closed. |
With the adjusted actions dropdown, the positioning is wrong when you start to scroll (far). And what makes this issue worse, is that the content jumps to the position of the popover when you open the menu while scrolled down. This means it is impossible to ever see the actions menu popover while at the bottom of the page. See here:
Also, in some cases an x-y-scroll bar appears when opening the menu. But this is just an annoyance and no critical usability issue:
@skjnldsv and @ma12-co (since I think you worked on the actions popover).
The text was updated successfully, but these errors were encountered: