mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: fix tag & category clicks on mobile topic list (#20449)
This commit is contained in:
parent
d3983d94a3
commit
90ed30b3ff
@ -260,9 +260,9 @@ export default Component.extend({
|
||||
// make full row click target on mobile, due to size constraints
|
||||
if (
|
||||
this.site.mobileView &&
|
||||
(e.target.classList.contains("right") ||
|
||||
e.target.classList.contains("topic-item-stats") ||
|
||||
e.target.classList.contains("main-link"))
|
||||
e.target.matches(
|
||||
".topic-list-data, .main-link, .right, .topic-item-stats, .topic-item-stats__category-tags, .discourse-tags"
|
||||
)
|
||||
) {
|
||||
if (wantsNewWindow(e)) {
|
||||
return true;
|
||||
|
@ -189,9 +189,13 @@
|
||||
|
||||
.topic-item-stats__category-tags {
|
||||
margin-right: 0.5em;
|
||||
.category,
|
||||
|
||||
.discourse-tags {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.badge-wrapper,
|
||||
.discourse-tag {
|
||||
// disabling clicks because these targets are too small on mobile
|
||||
pointer-events: none;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user