From 84a0f1913c9b3d1215ad3f99a49ee61c11e3c138 Mon Sep 17 00:00:00 2001 From: z0ccc Date: Tue, 8 Jun 2021 02:42:54 -0400 Subject: [PATCH] Formatted popup table --- public/vytal-1.svg | 91 ++++++++++++++++++++++++++++++++++++++++++++++ public/vytal-2.svg | 91 ++++++++++++++++++++++++++++++++++++++++++++++ src/App.css | 45 ++++++++++++++++++++++- src/App.jsx | 13 +++---- src/popup.css | 7 ++-- 5 files changed, 235 insertions(+), 12 deletions(-) create mode 100644 public/vytal-1.svg create mode 100644 public/vytal-2.svg diff --git a/public/vytal-1.svg b/public/vytal-1.svg new file mode 100644 index 0000000..308107c --- /dev/null +++ b/public/vytal-1.svg @@ -0,0 +1,91 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/public/vytal-2.svg b/public/vytal-2.svg new file mode 100644 index 0000000..70a9f1f --- /dev/null +++ b/public/vytal-2.svg @@ -0,0 +1,91 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/src/App.css b/src/App.css index c6faecf..3224692 100644 --- a/src/App.css +++ b/src/App.css @@ -1,6 +1,22 @@ +:root { + --text: #212121; + --background: #fff; + --scrollbar: #ccc; +} + +body { + color: var(--text); + background-color: var(--background); + font-size: 15px; + line-height: 22px; + width: 370px; + margin-right: 2px; +} + .title { font-weight: 600; - margin: 3px 0 0 0; + font-size: 16px; + margin: 6px 0 0 0; } table { @@ -8,7 +24,15 @@ table { } tr { - margin: 3px 0; + margin: 8px 0; +} + +td { + vertical-align: top; +} + +.column-one { + width: 150px; } .itemWrap { @@ -18,4 +42,21 @@ tr { .flagWrap { margin: 0 0 0 6px; +} + +.capitalize { + text-transform: capitalize; +} + +::-webkit-scrollbar { + width: 7px; +} + +::-webkit-scrollbar-track { + display: none; +} + +::-webkit-scrollbar-thumb { + background: var(--scrollbar); + border-radius: 2px; } \ No newline at end of file diff --git a/src/App.jsx b/src/App.jsx index 4531e22..962df8a 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -45,7 +45,7 @@ const App = () => { navigator.getBattery().then((battery) => { updateDOM('batteryLevel', `${Math.round(battery.level * 100)}%`); - updateDOM('batteryStatus', `${battery.charging ? '' : 'not'} charging`); + updateDOM('batteryStatus', battery.charging ? 'Charging' : 'Not charging'); }); updateDOM('memory', `${navigator.deviceMemory}GB`); @@ -59,8 +59,7 @@ const App = () => { return (
- - +
Connection
@@ -143,26 +142,26 @@ const App = () => {
Hardware
diff --git a/src/popup.css b/src/popup.css index bd5a04f..2d5ec5c 100644 --- a/src/popup.css +++ b/src/popup.css @@ -1,6 +1,7 @@ -:root { +/* :root { --text: #212121; --background: #fff; + --scrollbar: #ccc; } body { @@ -8,5 +9,5 @@ body { background-color: var(--background); font-size: 15px; line-height: 22px; - width: 400px; -} \ No newline at end of file + width: 380px; +} */ \ No newline at end of file
IP address:
Cookies enabled: -
+
Java enabled: -
+
DNT header enabled: -
+
Platform: -
+