-
Notifications
You must be signed in to change notification settings - Fork 178
fix(activities): only hover pictures if device supports it #2297
Conversation
changed: use default group location for defaultMapCenter when creatin…
UserSlot.vue: - add "@media (hover)" to enable hover if device supports it - remove "hoverHide" div and its style as it's not needed - rename "hoverUser" prop to "user" for better readability - rename "hoverShow" class to "show-picture-on-hover" - fix wrong style declaration "cursor ini" in class "greyedOut" -> now it's "cursor default" as these boxes should not be clickable EmptySlot.vue: - fix wrong style declaration "cursor ini" in class "greyedOut" -> now it's "cursor default" as these boxes should not be clickable CurrentUser.vue: - add "@media (hover)" to enable hover if device supports it (the leave icon in this case)
… on an empty slot
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.
Thanks!
I really appreciate the small naming/style changes, and the CSS fixes. Cleaning up and tidying as you go! I like it 👍
Also very happy as it seems like it'll fix the issue nicely! I had got kind of stuck on it 🚀
My only real change request is the comment, but also if you can check why the event is propagating when it looks like it shouldn't (to my eyes) that would be great! ⭐
To get the tests to pass, it's the snapshot tests that are failing, I can explain more somewhere else, but for now if you just run yarn test -u
, and then commit the snapshot file that will have changed, that'll cause the tests to pass.
Regarding #2258 (comment):
Could you do another deploy of my PR?
The deployments are automatic, but only for branches inside our repo (i.e. not for your PR because it's from an external repo), easiest/best thing is we add you to "Karrot Devs" group and you can work on branches in our repo directly, and get branch deployments (see my message in chat for more info).
I will install yarn and check again. I'll update tests too then. |
Codecov Report
@@ Coverage Diff @@
## master #2297 +/- ##
=======================================
Coverage 57.34% 57.34%
=======================================
Files 286 286
Lines 5788 5788
Branches 911 911
=======================================
Hits 3319 3319
Misses 2466 2466
Partials 3 3
Continue to review full report at Codecov.
|
@nicksellen Updated snapshot. Also I have installed yarn and did all fresh. With |
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.
Looks good now! Happy for a merge 🚀
https://dev.karrot.world now works fine on my iPhone 😄 |
Closes #2257
What does this PR do?
Optimization of this PR: #2258
UserSlot.vue
:@media (hover)
to enable hover if device supports ithoverHide
div and its style as it's not neededhoverUser
prop to "user" for better readabilityhoverShow
class to "show-picture-on-hover"cursor ini
in classgreyedOut
-> now it'scursor default
as these boxes should not be clickableEmptySlot.vue
:cursor ini
in classgreyedOut
-> now it'scursor default
as these boxes should not be clickable@click.stop
to stop going to activity detail when clicking on an empty slotCurrentUser.vue
:@media (hover)
to enable hover if device supports it (the leave icon in this case)Links to related issues
Checklist