From 0f746d836fa9999dc892834b64397f5faeef571e Mon Sep 17 00:00:00 2001 From: Jim Richter Date: Thu, 1 Apr 2021 19:21:01 +0200 Subject: [PATCH] fix: hotfixes for the color store design --- view/src/components/Editor/Editor.svelte | 2 +- view/src/components/Editor/Painter.svelte | 4 ++-- view/src/components/Editor/TopBar.svelte | 4 ++-- view/src/routes/list.svelte | 25 +++++++++++++++-------- 4 files changed, 21 insertions(+), 14 deletions(-) diff --git a/view/src/components/Editor/Editor.svelte b/view/src/components/Editor/Editor.svelte index b748615..6354c29 100644 --- a/view/src/components/Editor/Editor.svelte +++ b/view/src/components/Editor/Editor.svelte @@ -21,7 +21,7 @@ let layerOpacity = 50; let _layerOpacity = localStorage.getItem("layerOpacity"); if (_layerOpacity) { - layerOpacity = _layerOpacity; + layerOpacity = +_layerOpacity; } diff --git a/view/src/components/Editor/Painter.svelte b/view/src/components/Editor/Painter.svelte index 18d1f77..0efdaae 100644 --- a/view/src/components/Editor/Painter.svelte +++ b/view/src/components/Editor/Painter.svelte @@ -516,7 +516,7 @@ position: absolute; top: 60px; right: 10px; - z-index: 1001; + z-index: 998; cursor: pointer; pointer-events: all; } @@ -525,7 +525,7 @@ position: absolute; top: 10px; right: 10px; - z-index: 1001; + z-index: 998; cursor: pointer; pointer-events: all; } diff --git a/view/src/components/Editor/TopBar.svelte b/view/src/components/Editor/TopBar.svelte index fbadee5..ef70eb0 100644 --- a/view/src/components/Editor/TopBar.svelte +++ b/view/src/components/Editor/TopBar.svelte @@ -1,5 +1,5 @@