UX: fix tag & category clicks on mobile topic list (#20449)

This commit is contained in:
Kris 2023-02-24 15:29:57 -05:00 committed by GitHub
parent d3983d94a3
commit 90ed30b3ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -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;

View File

@ -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;
}