diff --git a/lemmy-translations b/lemmy-translations index 22637606..cda65b80 160000 --- a/lemmy-translations +++ b/lemmy-translations @@ -1 +1 @@ -Subproject commit 22637606f4a4455458e64cefe9f5ec33dccb6c52 +Subproject commit cda65b80a58e24d8d397a835f67b193255e7b806 diff --git a/src/shared/components/home/instances.tsx b/src/shared/components/home/instances.tsx index 0d6748a7..ba397886 100644 --- a/src/shared/components/home/instances.tsx +++ b/src/shared/components/home/instances.tsx @@ -94,24 +94,25 @@ export class Instances extends Component { {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)} -
- )} +
+ {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, false)} + + )} +
) : ( @@ -133,7 +134,7 @@ export class Instances extends Component { ); } - itemList(items: Instance[]) { + itemList(items: Instance[], link = true) { return items.length > 0 ? (
@@ -148,9 +149,15 @@ export class Instances extends Component { {items.map(i => (
- - {i.domain} - + {link ? ( + + {" "} + {i.domain}{" "} + + ) : ( + {i.domain} + )} + ; {i.software} {i.version}