From 429550c93522b17935a77fd630186e4527685d01 Mon Sep 17 00:00:00 2001
From: Daniel LaCosse <3759828+daniellacosse@users.noreply.github.com>
Date: Fri, 13 Oct 2023 17:26:44 -0400
Subject: [PATCH] switch to class approach
---
.../pages/connectivity_test/index.ts | 28 +++++--------------
1 file changed, 7 insertions(+), 21 deletions(-)
diff --git a/x/examples/outline-connectivity-app/shared_frontend/pages/connectivity_test/index.ts b/x/examples/outline-connectivity-app/shared_frontend/pages/connectivity_test/index.ts
index e1efc6fe..48f3a3ad 100644
--- a/x/examples/outline-connectivity-app/shared_frontend/pages/connectivity_test/index.ts
+++ b/x/examples/outline-connectivity-app/shared_frontend/pages/connectivity_test/index.ts
@@ -191,7 +191,8 @@ export class ConnectivityTestPage extends LitElement {
width: 100vw;
}
- .header {
+ .header,
+ .header--ios {
background: var(--color-background-brand);
display: flex;
justify-content: center;
@@ -201,6 +202,10 @@ export class ConnectivityTestPage extends LitElement {
width: 100%;
}
+ .header--ios {
+ padding-top: 3.7rem;
+ }
+
.header-text {
color: var(--color-text-brand);
font-family: var(--font-sans-serif);
@@ -593,7 +598,7 @@ export class ConnectivityTestPage extends LitElement {
// TODO: move language definitions to a centralized place
return html`
${this.renderPlatformStyles()}
- `;
}
- renderPlatformStyles() {
- if (!this.platform) {
- return nothing;
- }
-
- // TODO: changes how switches look on android
- switch (this.platform.operatingSystem) {
- case OperatingSystem.IOS:
- return html`
- `;
- default:
- return nothing;
- }
- }
-
renderResults() {
if (!this.response) {
return nothing;