Skip to content

Commit

Permalink
Update DiscussionListItem.less to fix double tap on mobile (#2607)
Browse files Browse the repository at this point in the history
Adds a rule to the discussion list less file which targets touch devices whose primary way of interacting does not include a mouse / ability to hover. For those devices the toggle button is hidden which fixes the double tap issue.
  • Loading branch information
zerosonesfun authored and askvortsov1 committed Feb 21, 2021
1 parent a46fe3f commit cf73a8a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions less/forum/DiscussionListItem.less
Expand Up @@ -110,6 +110,11 @@
}
}

@media (any-hover: none) {
.DiscussionListItem-controls > .Dropdown-toggle {
display: none;
}
}

@media @phone {
.DiscussionListItem-controls {
Expand Down

0 comments on commit cf73a8a

Please sign in to comment.