From 46ea39245ee4bd4e3dd9767d9f0f398901c7d675 Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 22 Oct 2024 18:32:20 +0200 Subject: [PATCH] Settings styling --- Website/modules/Settings.tsx | 50 ++++++++++++++++++------------------ Website/styles/settings.css | 27 ++++++++++++++++++- 2 files changed, 51 insertions(+), 26 deletions(-) diff --git a/Website/modules/Settings.tsx b/Website/modules/Settings.tsx index 78130eb..4b35e29 100644 --- a/Website/modules/Settings.tsx +++ b/Website/modules/Settings.tsx @@ -154,38 +154,38 @@ export default function Settings({backendConnected, apiUri, settings, changeSett -
+
LIBRARY CONNECTORS
-
+
- Komga Logo + Komga Logo Komga - + - + - + -
+
Test Reset Apply
-
+
- Kavita Logo + Kavita Logo Kavita - + - + - + -
+
Test Reset Apply @@ -197,40 +197,40 @@ export default function Settings({backendConnected, apiUri, settings, changeSett
NOTIFICATION CONNECTORS
-
+
- Gotify Logo + Gotify Logo Gotify - + - + -
+
Test Reset Apply
-
+
- Lunasea Logo + Lunasea Logo LunaSea - + -
+
Test Reset Apply
-
+
ntfy Logo Ntfy - + @@ -238,7 +238,7 @@ export default function Settings({backendConnected, apiUri, settings, changeSett -
+
Test Reset Apply diff --git a/Website/styles/settings.css b/Website/styles/settings.css index 5241e6a..f93ec13 100644 --- a/Website/styles/settings.css +++ b/Website/styles/settings.css @@ -36,6 +36,7 @@ } .section-item { + position: relative; display: flex; flex-direction: column; width: 22%; @@ -46,7 +47,15 @@ border-width: 1px; border-color: lightgray; margin: 7px; - padding: 5px; + padding: 5px 5px 35px; +} + +.section-item[connector-status="Not Configured"]{ + border-color: var(--primary-color); +} + +.section-item[connector-status="Configured"]{ + border-color: green; } .section-item > .settings-section-title { @@ -65,3 +74,19 @@ border-radius: 5px; } +.section-item .section-actions { + position: absolute; + bottom: 0; + display: flex; + justify-content: space-around; + margin: 5px; + width: 100%; +} + +.section-actions > span { + border: 1px solid lightgray; + padding: 3px 5px 2px; + width: 10ch; + text-align: center; + border-radius: 3px; +} \ No newline at end of file