From 91ccf7589e929be785aa383714267eceb5ba6ee8 Mon Sep 17 00:00:00 2001 From: Yaros Date: Sat, 17 Aug 2024 21:20:25 +0200 Subject: [PATCH] Fixed dataflash indicator in the top row (#4135) --- src/css/main.less | 23 +++++++++++++---------- src/index.html | 9 ++++----- src/js/update_dataflash_global.js | 4 ++-- 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/src/css/main.less b/src/css/main.less index 376a5899a3..73524cc36d 100644 --- a/src/css/main.less +++ b/src/css/main.less @@ -455,22 +455,25 @@ input[type="number"] { flex-direction: column; gap: 0.5rem; padding: 0.5rem; - background-color: var(--surface-300); border-radius: 0.5rem; - li { - background-color: var(--surface-600); - height: 0.35rem; - position: relative; - border-radius: 999px; - width: 100% !important; - } + background-color: var(--surface-300); + .notsupported_global { display: none; } + progress { + height: 0.35rem; + border-radius: 12px; + appearance: none; + -webkit-appearance: none; + overflow: hidden; &::-webkit-progress-bar { - height: 8px; - background-color: var(--surface-300); + background-color: var(--surface-500); + } + &::-webkit-progress-value { + background-color: var(--primary-500); + border-radius: 0 12px 12px 0; } } } diff --git a/src/index.html b/src/index.html index 23481d49c7..c338fe68ea 100644 --- a/src/index.html +++ b/src/index.html @@ -79,13 +79,12 @@
-
+
-
+