Fix nodes color when the connection is not active

This commit is contained in:
Arnaud 2024-11-11 07:17:41 +07:00
parent 503cca59af
commit c0e80b5acb
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
2 changed files with 7 additions and 4 deletions

View File

@ -74,9 +74,12 @@ export function AppBar({ onIconClick }: Props) {
const networkIconColor = online
? "#3EE089"
: "var(--codex-input-color-error)";
const nodesIconColor = codex.enabled
? "#3EE089"
: "var(--codex-input-color-error)";
const nodesIconColor =
codex.enabled === false
? "var(--codex-input-color-error)"
: persistence.enabled
? "#3EE089"
: "var(--codex-input-color-warning)";
return (
<>

View File

@ -26,7 +26,7 @@
border-right-color: var(--codex-input-color-error);
}
&.app-bar--no-persistence {
&.app-bar--no-persistence:not(.app-bar--offline) {
border-right-color: rgb(var(--codex-color-warning));
}