UX: Indicate that "Show replies" button does not work for deleted posts (#16304)

This commit is contained in:
Penar Musaraj 2022-03-29 11:58:50 -04:00 committed by GitHub
parent 7a284164ce
commit 1210cfe60e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -268,6 +268,7 @@ registerButton("replies", (attrs, state, siteSettings) => {
labelOptions: { count: replyCount },
label: attrs.mobileView ? "post.has_replies_count" : "post.has_replies",
iconRight: !siteSettings.enable_filtered_replies_view || attrs.mobileView,
disabled: !!attrs.deleted,
};
});

View File

@ -388,6 +388,10 @@ nav.post-controls {
color: currentColor;
}
}
&[disabled]:hover {
background-color: transparent;
cursor: not-allowed;
}
&.fade-out {
opacity: 1;
}