Merge branch 'main' into tweak/thumbnail-fixed-width-height

This commit is contained in:
SleeplessOne1917 2023-06-27 20:12:04 -04:00 committed by GitHub
commit 31daff70cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 33 deletions

View file

@ -322,7 +322,7 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
getRoleLabelPill({ getRoleLabelPill({
label: I18NextService.i18n.t("op").toUpperCase(), label: I18NextService.i18n.t("op").toUpperCase(),
tooltip: I18NextService.i18n.t("creator"), tooltip: I18NextService.i18n.t("creator"),
classes: "text-bg-info text-black", classes: "text-bg-info",
shrink: false, shrink: false,
})} })}
@ -330,14 +330,14 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
getRoleLabelPill({ getRoleLabelPill({
label: I18NextService.i18n.t("mod"), label: I18NextService.i18n.t("mod"),
tooltip: I18NextService.i18n.t("mod"), tooltip: I18NextService.i18n.t("mod"),
classes: "text-bg-primary text-black", classes: "text-bg-primary",
})} })}
{isAdmin_ && {isAdmin_ &&
getRoleLabelPill({ getRoleLabelPill({
label: I18NextService.i18n.t("admin"), label: I18NextService.i18n.t("admin"),
tooltip: I18NextService.i18n.t("admin"), tooltip: I18NextService.i18n.t("admin"),
classes: "text-bg-danger text-white", classes: "text-bg-danger",
})} })}
{cv.creator.bot_account && {cv.creator.bot_account &&

View file

@ -260,8 +260,7 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
subscribe() { subscribe() {
const community_view = this.props.community_view; const community_view = this.props.community_view;
return ( return (
<> community_view.subscribed === "NotSubscribed" && (
{community_view.subscribed == "NotSubscribed" && (
<button <button
className="btn btn-secondary d-block mb-2 w-100" className="btn btn-secondary d-block mb-2 w-100"
onClick={linkEvent(this, this.handleFollowCommunity)} onClick={linkEvent(this, this.handleFollowCommunity)}
@ -272,8 +271,7 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
I18NextService.i18n.t("subscribe") I18NextService.i18n.t("subscribe")
)} )}
</button> </button>
)} )
</>
); );
} }
@ -281,8 +279,7 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
const { subscribed, blocked } = this.props.community_view; const { subscribed, blocked } = this.props.community_view;
return ( return (
<> subscribed === "NotSubscribed" && (
{subscribed == "NotSubscribed" && (
<button <button
className="btn btn-danger d-block mb-2 w-100" className="btn btn-danger d-block mb-2 w-100"
onClick={linkEvent(this, this.handleBlockCommunity)} onClick={linkEvent(this, this.handleBlockCommunity)}
@ -291,8 +288,7 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
blocked ? "unblock_community" : "block_community" blocked ? "unblock_community" : "block_community"
)} )}
</button> </button>
)} )
</>
); );
} }

View file

@ -489,7 +489,7 @@ export class Profile extends Component<
{getRoleLabelPill({ {getRoleLabelPill({
label: I18NextService.i18n.t("banned"), label: I18NextService.i18n.t("banned"),
tooltip: I18NextService.i18n.t("banned"), tooltip: I18NextService.i18n.t("banned"),
classes: "text-bg-danger text-white", classes: "text-bg-danger",
shrink: false, shrink: false,
})} })}
</li> </li>
@ -499,7 +499,7 @@ export class Profile extends Component<
{getRoleLabelPill({ {getRoleLabelPill({
label: I18NextService.i18n.t("deleted"), label: I18NextService.i18n.t("deleted"),
tooltip: I18NextService.i18n.t("deleted"), tooltip: I18NextService.i18n.t("deleted"),
classes: "text-bg-danger text-white", classes: "text-bg-danger",
shrink: false, shrink: false,
})} })}
</li> </li>

View file

@ -412,13 +412,13 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
getRoleLabelPill({ getRoleLabelPill({
label: I18NextService.i18n.t("mod"), label: I18NextService.i18n.t("mod"),
tooltip: I18NextService.i18n.t("mod"), tooltip: I18NextService.i18n.t("mod"),
classes: "text-bg-primary text-black", classes: "text-bg-primary",
})} })}
{this.creatorIsAdmin_ && {this.creatorIsAdmin_ &&
getRoleLabelPill({ getRoleLabelPill({
label: I18NextService.i18n.t("admin"), label: I18NextService.i18n.t("admin"),
tooltip: I18NextService.i18n.t("admin"), tooltip: I18NextService.i18n.t("admin"),
classes: "text-bg-danger text-white", classes: "text-bg-danger",
})} })}
{post_view.creator.bot_account && {post_view.creator.bot_account &&
getRoleLabelPill({ getRoleLabelPill({