-
Notifications
You must be signed in to change notification settings - Fork 11
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
PB-985: Make Layer Info Movable #1079
base: develop
Are you sure you want to change the base?
Conversation
web-mapviewer Run #3597
Run Properties:
|
Project |
web-mapviewer
|
Run status |
Passed #3597
|
Run duration | 05m 12s |
Commit |
a72d5edc6a: PB-985: Fix failed unit test.
|
Committer | Ismail Sunni |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
21
|
Skipped |
0
|
Passing |
211
|
Need to fix the test first, it seems the approach is wrong :) |
41affb8
to
6f2f42a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the ticket, there was also the idea of adding a 'minimize' button if this did not take too much effort. In the mapPopoverComponent
, this is handled with this button :
web-mapviewer/src/modules/map/components/MapPopover.vue
Lines 156 to 163 in 693e590
<button | |
class="btn btn-sm btn-light d-flex align-items-center" | |
data-cy="map-popover-close-button" | |
@click="showContent = !showContent" | |
@mousedown.stop="" | |
> | |
<FontAwesomeIcon :icon="`caret-${showContent ? 'up' : 'down'}`" /> | |
</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As stated by Martin, it would make more sense to share the "movable" part of the MapPopover.vue
here (through some composable or component hierarchy) instead of recreating it.
I would also shrink the width of the container to fit its content, but not to go further anymore. |
247b507
to
5a85545
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If possible, I'd lower the width of the movable layer info to somewhat similar width as the feature tooltip
I have updated my works, now it contains:
I have updated the screencast in the first comment Feel free to test and suggestions are welcomed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works well on desktop, but still needs a bit of work on smaller screen (I think some max-width
are messing with the size of the element)
You might want to try out with your "Device toolbar" on and play a bit with a phone sized screen
hi @pakb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It breaks the normal modal windows like the third party disclaimer and the import file window. In this case the black drop is removed and the close function when clicking outside of the window don't work anymore.
For the import file window, it might also good to make it movable by adding the movable
option to it. For the disclaimer the modal with backdrop should be kept.
But to be honest I would not add the movable to the ModalWithBackdrop
, to me a modal window should not be movable.
Can you not replace the ModalWithBackrop
by the MapPopover
component for the layer description ? Or even better use the SimpleWindow
component like for the report a problem and add the movable to it. This component is used by the report a problem window which is not movable but would be surely nice to have it movable as well.
cc7cc0d
to
3a5ccb7
Compare
@ltshb I have used SimpleWindow for the LayerDescription, add movable to it, and make the report window movable. |
…seMovableComponent.
3eed162
to
bc7691e
Compare
Update screencast:
I'm not super expert in CSS, so any suggestions are welcome :)
Test link