From 4057ca6e724b52ee7f189111d1994671ba8ee70f Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Tue, 11 Apr 2023 21:16:45 +0800 Subject: [PATCH 1/2] UI: Improve monitor page on mobile --- src/pages/Details.vue | 62 ++++++++++++++++++++++++++++--------------- 1 file changed, 40 insertions(+), 22 deletions(-) diff --git a/src/pages/Details.vue b/src/pages/Details.vue index dd7df977c..9e5628465 100644 --- a/src/pages/Details.vue +++ b/src/pages/Details.vue @@ -54,35 +54,41 @@
-
-

{{ pingTitle() }}

-

({{ $t("Current") }})

- +
+

{{ pingTitle() }}

+

({{ $t("Current") }})

+
-
-

{{ pingTitle(true) }}

-

(24{{ $t("-hour") }})

- +
+

{{ pingTitle(true) }}

+

(24{{ $t("-hour") }})

+ + +
-
-

{{ $t("Uptime") }}

-

(24{{ $t("-hour") }})

- +
+

{{ $t("Uptime") }}

+

(24{{ $t("-hour") }})

+ + +
-
-

{{ $t("Uptime") }}

-

(30{{ $t("-day") }})

- +
+

{{ $t("Uptime") }}

+

(30{{ $t("-day") }})

+ + +
-
-

{{ $t("Cert Exp.") }}

-

()

- + @@ -136,7 +142,7 @@ - + {{ beat.msg }} @@ -376,7 +382,7 @@ export default { translationPrefix = "Avg. "; } - if (this.monitor.type === "http") { + if (this.monitor.type === "http" || this.monitor.type === "keyword") { return this.$t(translationPrefix + "Response"); } @@ -415,6 +421,7 @@ export default { flex-direction: column; align-items: center; padding-top: 10px; + font-size: 0.9em; } a.btn { @@ -471,6 +478,17 @@ table { } } +@media (max-width: 550px) { + .stats { + .col { + margin: 10px 0 !important; + } + h4 { + font-size: 1.1rem; + } + } +} + .keyword { color: black; } From 9f51115a194c08be2a759ad8283efca8e516f5f9 Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Tue, 11 Apr 2023 21:27:03 +0800 Subject: [PATCH 2/2] Chore: Fix lint --- src/pages/Details.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/Details.vue b/src/pages/Details.vue index 9e5628465..100f91bfb 100644 --- a/src/pages/Details.vue +++ b/src/pages/Details.vue @@ -483,6 +483,7 @@ table { .col { margin: 10px 0 !important; } + h4 { font-size: 1.1rem; }