Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix hidden instance technical information page

Chocobozzz4572d49a0e37
diff --git a/client/src/app/+about/about-instance/about-instance.component.scss b/client/src/app/+about/about-instance/about-instance.component.scss
index ab296d3078..f7cd68830b 100644
--- a/client/src/app/+about/about-instance/about-instance.component.scss
+++ b/client/src/app/+about/about-instance/about-instance.component.scss
@@ -4,12 +4,14 @@
.content {
display: flex;
+ justify-content: space-between;
@include rfs(4rem, gap);
}
my-instance-stat-rules {
min-width: 600px;
+ max-width: 50%;;
}
@media screen and (max-width: #{breakpoint(xl)}) {
@@ -19,5 +21,6 @@ my-instance-stat-rules {
my-instance-stat-rules {
min-width: 100%;
+ max-width: unset;
}
}
diff --git a/client/src/app/+about/about-instance/about-instance.component.ts b/client/src/app/+about/about-instance/about-instance.component.ts
index 6cfcf22cf7..c8bf05924d 100644
--- a/client/src/app/+about/about-instance/about-instance.component.ts
+++ b/client/src/app/+about/about-instance/about-instance.component.ts
@@ -59,11 +59,10 @@ export class AboutInstanceComponent implements OnInit {
})
}
- if (aboutHTML.hardwareInformation) {
- this.menuEntries.push({
- label: $localize`Technical information`,
- routerLink: '/about/instance/tech'
- })
- }
+ // Always displayed, we have the "features found on this instance" table on this page
+ this.menuEntries.push({
+ label: $localize`Technical information`,
+ routerLink: '/about/instance/tech'
+ })
}
}
diff --git a/client/src/app/+about/about-instance/children/about-instance-tech.component.html b/client/src/app/+about/about-instance/children/about-instance-tech.component.html
index afcb201e19..4a149edeff 100644
--- a/client/src/app/+about/about-instance/children/about-instance-tech.component.html
+++ b/client/src/app/+about/about-instance/children/about-instance-tech.component.html
@@ -1,4 +1,4 @@
-<div myPluginSelector pluginSelectorId="about-instance-other-information">
+<div *ngIf="aboutHTML.hardwareInformation" myPluginSelector pluginSelectorId="about-instance-other-information">
<h4 i18n class="section-title">Hardware information</h4>
<div [innerHTML]="aboutHTML.hardwareInformation"></div>
</div>