Repository navigation
context menu: below cursor + without close button + with icons - #232
Conversation
|
I think the little arrow is unnecessary e.g. google maps does not have it too ;)
Ok, will try to tune it :) |
|
better? Interesting: if you are at the bottom of the map the map moves so that the popup is then completely visible :) A similar behaviour can be observed for master, but afterwards the popup is still not even 50% visible (!?)
Sorry I forgot to complete this sentence: they are unnecessary because all the other corners are rounded and the arrowhead is formed indirectly :) |
|
And can you check if you still see #203? |
I like the green/blue/red icons for from/via/to. The old menu still looks better to me, maybe because of the smaller line spacing, less padding and smaller corner radius? But probably not so important. And of course we should get rid of the ugly 'x' button at some point.
yeah.. but that looks a bit strange :D
That is probably an OL feature? And maybe it does not work properly in master, because of the css you removed here?
I cannot reproduce this here, but I cannot reproduce it in master, either. |
So you want to look the context menu exactly like the old I guess :) ? The problem is that it would not fit well together with the rest of the app like less padding or the font itself. But I will reduce the corner radius.
Yeah, not sure. |
I don't know, I was just saying the old one looks better to me. And actually I don't even think it fits very well with the rest of the app:
|
|
... but maybe this is for another issue :) #136 |
|
Can you try the latest commit on various browsers? I think, I found the reason the menu did close prematurely on touch events :) and then no close button would be necessary
fixed
Hm, you mean a smaller component should get less padding?
what do you mean here?
The elevation diagram had the same 10px border radius :) (and the sidebar was indeed slightly smaller due to 0.5em). But reduced it for now to better know where we would create the point and to avoid having different border radius applied (I found this a nice solution tbh :) )
In the past I just wasn't able to change the x button of the elevation diagram. E.g. the x button of the error message is the same as for the context menu. |
| import { AddPoint, QueryOSM, SetPoint, ZoomMapToPoint } from '@/actions/Actions' | ||
| import { RouteStoreState } from '@/stores/RouteStore' | ||
| import { findNextWayPoint } from '@/map/findNextWayPoint' | ||
| import Cross from '@/sidebar/times-solid.svg' |
There was a problem hiding this comment.
We cannot remove the svg itself as it is still used from the error message.
No, I thought it should probably be the same in absolute terms, but a smaller component should definitely not have a bigger (absolute) padding?
I was trying to say: Yes, we should try to match the look of the context menu with the other components, but since I could not see anything that was similar to the menu I thought we can freely choose how much empty room there is between the map entries (rows).
Really? In my above screenshot it looks like the elevation diagram radius is bigger?! |
Yes, or I'm misunderstanding something, see ContextMenu.module.css and in heightgraph there is a css rule:
Yes, exactly. I'm now using similar padding where possible (instead of Can I merge or further improvements possible :) ? |
You can always merge and always further improvements are possible :D |
|
Thanks for this! |
…hopper#232) * reintroduce LongPressHandler for iOS * comment * popup menu above cursor is problematic * try to improve right-click popup * a bit tighter * really no close button necessary? * css style * hover should be centered * remove close button, graphhopper#235







The problem was when you are zoomed out then the popup is too big if you clicked into an area north of Germany. And you first have to zoom in to click on "start". So moving the popup right-below the cursor seems to feel better and additionally we removed some code :)
(the elevation popup above the route is left unchanged)
Related to #136 and #135.