From: Jay Sitter Date: Sun, 2 Jul 2023 18:29:56 +0000 (-0400) Subject: fix: Fix heading levels X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/%7Bthis.getImage%28%29%7D?a=commitdiff_plain;h=a48c20a772c40e519f64863e3d7edb2985f2a31c;p=lemmy-ui.git fix: Fix heading levels --- diff --git a/src/shared/components/community/communities.tsx b/src/shared/components/community/communities.tsx index 8d86d9d..7510bb1 100644 --- a/src/shared/components/community/communities.tsx +++ b/src/shared/components/community/communities.tsx @@ -102,7 +102,7 @@ export class Communities extends Component { const { listingType, page } = this.getCommunitiesQueryParams(); return (
-

+

{I18NextService.i18n.t("list_of_communities")}

diff --git a/src/shared/components/community/community.tsx b/src/shared/components/community/community.tsx index 879db3e..c00380a 100644 --- a/src/shared/components/community/community.tsx +++ b/src/shared/components/community/community.tsx @@ -485,7 +485,7 @@ export class Community extends Component< community && (
-
{community.title}
+

{community.title}

{ />
-
{I18NextService.i18n.t("create_community")}
+

+ {I18NextService.i18n.t("create_community")} +

{ return (
-
+

{this.props.showIcon && !community.removed && ( )} @@ -191,7 +191,7 @@ export class Sidebar extends Component { {I18NextService.i18n.t("nsfw")} )} -

+ { role="tabpanel" id="site-tab-pane" > +

+ {I18NextService.i18n.t("site_config")} +

{
{this.admins()} +
{this.bannedUsers()}
@@ -249,7 +253,9 @@ export class AdminSettings extends Component { admins() { return ( <> -
{capitalizeFirstLetter(I18NextService.i18n.t("admins"))}
+

+ {capitalizeFirstLetter(I18NextService.i18n.t("admins"))} +

    {this.state.siteRes.admins.map(admin => (
  • @@ -289,7 +295,7 @@ export class AdminSettings extends Component { const bans = this.state.bannedRes.data.banned; return ( <> -
    {I18NextService.i18n.t("banned_users")}
    +

    {I18NextService.i18n.t("banned_users")}

      {bans.map(banned => (
    • diff --git a/src/shared/components/home/emojis-form.tsx b/src/shared/components/home/emojis-form.tsx index 4108e7a..997b60f 100644 --- a/src/shared/components/home/emojis-form.tsx +++ b/src/shared/components/home/emojis-form.tsx @@ -77,7 +77,7 @@ export class EmojiForm extends Component { title={this.documentTitle} path={this.context.router.route.match.url} /> -
      {I18NextService.i18n.t("custom_emojis")}
      +

      {I18NextService.i18n.t("custom_emojis")}

      {customEmojisLookup.size > 0 && (
      { case "success": { const instances = this.state.instancesRes.data.federated_instances; return instances ? ( -
      -
      -
      {I18NextService.i18n.t("linked_instances")}
      - {this.itemList(instances.linked)} -
      - {instances.allowed && instances.allowed.length > 0 && ( -
      -
      {I18NextService.i18n.t("allowed_instances")}
      - {this.itemList(instances.allowed)} -
      - )} - {instances.blocked && instances.blocked.length > 0 && ( + <> +

      {I18NextService.i18n.t("instances")}

      +
      -
      {I18NextService.i18n.t("blocked_instances")}
      - {this.itemList(instances.blocked)} +

      + {I18NextService.i18n.t("linked_instances")} +

      + {this.itemList(instances.linked)}
      - )} -
      +
      +
      + {instances.allowed && instances.allowed.length > 0 && ( +
      +

      + {I18NextService.i18n.t("allowed_instances")} +

      + {this.itemList(instances.allowed)} +
      + )} + {instances.blocked && instances.blocked.length > 0 && ( +
      +

      + {I18NextService.i18n.t("blocked_instances")} +

      + {this.itemList(instances.blocked)} +
      + )} +
      + ) : ( <> ); diff --git a/src/shared/components/home/login-reset.tsx b/src/shared/components/home/login-reset.tsx index c96255d..7d1d002 100644 --- a/src/shared/components/home/login-reset.tsx +++ b/src/shared/components/home/login-reset.tsx @@ -59,9 +59,9 @@ export class LoginReset extends Component { loginResetForm() { return (
      -
      +

      {capitalizeFirstLetter(I18NextService.i18n.t("forgot_password"))} -

      +