Skip to content

PB-468 Fix arrow shift of time slider on the edges#833

Merged
schtibe merged 1 commit intodevelopfrom
bug-pb-468-time-slider-arrow-shift
May 14, 2024
Merged

PB-468 Fix arrow shift of time slider on the edges#833
schtibe merged 1 commit intodevelopfrom
bug-pb-468-time-slider-arrow-shift

Conversation

@schtibe
Copy link
Contributor

@schtibe schtibe commented May 13, 2024

The time band was so wide that the cursor was rendered weirdly when dragged to the very end of the time band:

image

On suggestion of Brice, I narrowed the band so that the cursor will always have the necessary
space to be displayed properly:

Screenshot from 2024-05-13 16-47-48

In the process, I also fixed a little display bug, where the arrow wasn't really in the middle of the cursor (or rather, the cursor wasn't centered above the arrow):

image

Test link

@github-actions github-actions bot added the bug label May 13, 2024
@schtibe schtibe force-pushed the bug-pb-468-time-slider-arrow-shift branch from 9c7c44c to 24c3dbd Compare May 13, 2024 14:46
@schtibe schtibe changed the title Bug-pb-468-time-slider-arrow-shift PB-468 Fix arrow shift of time slider on the edges May 13, 2024
@schtibe schtibe requested review from ltkum and ltshb May 13, 2024 14:49
@schtibe schtibe marked this pull request as ready for review May 13, 2024 14:49
@cypress
Copy link

cypress bot commented May 13, 2024

Passing run #2134 ↗︎

0 204 20 0 Flakiness 0

Details:

PB-468 Fix style of time slider when reaching the ends of the slider
Project: web-mapviewer Commit: 45df54df1e
Status: Passed Duration: 05:54 💡
Started: May 14, 2024 1:22 PM Ended: May 14, 2024 1:28 PM

Review all test suite changes for PR #833 ↗︎

@schtibe schtibe force-pushed the bug-pb-468-time-slider-underneath-menu branch 2 times, most recently from 4876959 to bc9b50f Compare May 13, 2024 15:17
Copy link
Contributor

@ltkum ltkum left a comment

Choose a reason for hiding this comment

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

It works quite well, but we encounter an issue where we can reach the end of the slider on the left, but not on the right. The smaller the width, the more visible it is.

After trying it on the current implementation, it looks like this issue is also present, event if it's a lot less visible, since the margins are smaller.

Screenshot from 2024-05-13 17-08-27

As we are here in the middle of reworking the CSS, it could make sense to change the CSS to be more dynamic (perhaps in another PR). The old mapviewer used a dropdown menu to avoid the issue completely.

That being said, the arrow seem centered and keep being in place. So, this looks good to me.

I'd like to see with @ltshb what we should plan for the CSS issue.

Copy link
Contributor

@ltshb ltshb left a comment

Choose a reason for hiding this comment

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

Looks good, there are other issues as @ltkum said and also on the right the bar is too long but those issues are not related to this change which makes the bar better.
In my opinion for the issue reported by @ltkum we need to use a dropdown and the issue is only present for very small device, Iphone SE is OK (although for iphone a dropdown could make more sense). The dropdown will be done after go live.

@schtibe schtibe force-pushed the bug-pb-468-time-slider-underneath-menu branch from bc9b50f to b88fb25 Compare May 14, 2024 08:10
Base automatically changed from bug-pb-468-time-slider-underneath-menu to develop May 14, 2024 08:21
@schtibe schtibe force-pushed the bug-pb-468-time-slider-arrow-shift branch from 24c3dbd to 6c82677 Compare May 14, 2024 09:43
The time band was so wide that the cursor was rendered weirdly when
dragged to the very end of the time band.
Narrowed the band so that the cursor will always have the necessary
space to be displayed properly.
@schtibe schtibe force-pushed the bug-pb-468-time-slider-arrow-shift branch from 6c82677 to 45df54d Compare May 14, 2024 13:18
@schtibe schtibe merged commit e82fd43 into develop May 14, 2024
@schtibe schtibe deleted the bug-pb-468-time-slider-arrow-shift branch May 14, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants