mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-26 06:11:15 +00:00
Merge pull request #1195 from fheft/fix-button-click-area
Fix unclickable button paddings
This commit is contained in:
commit
0197c2a0fc
2 changed files with 25 additions and 29 deletions
|
@ -436,15 +436,13 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
||||||
<>
|
<>
|
||||||
{!this.myComment && (
|
{!this.myComment && (
|
||||||
<>
|
<>
|
||||||
<button className="btn btn-link btn-animate">
|
<Link
|
||||||
<Link
|
className="btn btn-link btn-animate text-muted"
|
||||||
className="text-muted"
|
to={`/create_private_message/${cv.creator.id}`}
|
||||||
to={`/create_private_message/${cv.creator.id}`}
|
title={i18n.t("message").toLowerCase()}
|
||||||
title={i18n.t("message").toLowerCase()}
|
>
|
||||||
>
|
<Icon icon="mail" />
|
||||||
<Icon icon="mail" />
|
</Link>
|
||||||
</Link>
|
|
||||||
</button>
|
|
||||||
<button
|
<button
|
||||||
className="btn btn-link btn-animate text-muted"
|
className="btn btn-link btn-animate text-muted"
|
||||||
onClick={linkEvent(
|
onClick={linkEvent(
|
||||||
|
|
|
@ -649,29 +649,27 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
get commentsButton() {
|
get commentsButton() {
|
||||||
const post_view = this.props.post_view;
|
const post_view = this.props.post_view;
|
||||||
return (
|
return (
|
||||||
<button className="btn btn-link text-muted py-0 pl-0">
|
<Link
|
||||||
<Link
|
className="btn btn-link text-muted py-0 pl-0 text-muted"
|
||||||
className="text-muted"
|
title={i18n.t("number_of_comments", {
|
||||||
title={i18n.t("number_of_comments", {
|
count: Number(post_view.counts.comments),
|
||||||
|
formattedCount: Number(post_view.counts.comments),
|
||||||
|
})}
|
||||||
|
to={`/post/${post_view.post.id}?scrollToComments=true`}
|
||||||
|
>
|
||||||
|
<Icon icon="message-square" classes="mr-1" inline />
|
||||||
|
<span className="mr-2">
|
||||||
|
{i18n.t("number_of_comments", {
|
||||||
count: Number(post_view.counts.comments),
|
count: Number(post_view.counts.comments),
|
||||||
formattedCount: Number(post_view.counts.comments),
|
formattedCount: numToSI(post_view.counts.comments),
|
||||||
})}
|
})}
|
||||||
to={`/post/${post_view.post.id}?scrollToComments=true`}
|
</span>
|
||||||
>
|
{this.unreadCount && (
|
||||||
<Icon icon="message-square" classes="mr-1" inline />
|
<span className="small text-warning">
|
||||||
<span className="mr-2">
|
({this.unreadCount} {i18n.t("new")})
|
||||||
{i18n.t("number_of_comments", {
|
|
||||||
count: Number(post_view.counts.comments),
|
|
||||||
formattedCount: numToSI(post_view.counts.comments),
|
|
||||||
})}
|
|
||||||
</span>
|
</span>
|
||||||
{this.unreadCount && (
|
)}
|
||||||
<span className="small text-warning">
|
</Link>
|
||||||
({this.unreadCount} {i18n.t("new")})
|
|
||||||
</span>
|
|
||||||
)}
|
|
||||||
</Link>
|
|
||||||
</button>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue