From 01408a28833d2158d849b55e50a1281a8dfeef82 Mon Sep 17 00:00:00 2001 From: Andrew Michael McNutt Date: Thu, 15 Feb 2024 20:23:49 -0800 Subject: [PATCH] fix a couple things from the ipad --- src/components/ColorChannelPicker.svelte | 2 +- src/content-modules/Controls.svelte | 4 +- src/controls/Rotate.svelte | 118 +++++++++++------------ 3 files changed, 62 insertions(+), 62 deletions(-) diff --git a/src/components/ColorChannelPicker.svelte b/src/components/ColorChannelPicker.svelte index 88f1a2a1..0a88adeb 100644 --- a/src/components/ColorChannelPicker.svelte +++ b/src/components/ColorChannelPicker.svelte @@ -208,7 +208,7 @@ height: 2.2em; border-radius: 0.3em; box-shadow: 0 0 1px rgba(0, 0, 0, 0.5); - min-width: 285px; + min-width: 265px; } .color-slider::-webkit-slider-thumb { diff --git a/src/content-modules/Controls.svelte b/src/content-modules/Controls.svelte index 16073a1e..2df65e2c 100644 --- a/src/content-modules/Controls.svelte +++ b/src/content-modules/Controls.svelte @@ -35,7 +35,9 @@ - + {#if focusedColors.length > 0 && colorSpace !== "hsl" && colorSpace !== "hsv" && colorSpace !== "lch"} + + {/if} diff --git a/src/controls/Rotate.svelte b/src/controls/Rotate.svelte index eabccf4f..2fd5015f 100644 --- a/src/controls/Rotate.svelte +++ b/src/controls/Rotate.svelte @@ -106,74 +106,72 @@ } -{#if focusedColors.length > 0 && colorSpace !== "hsl" && colorSpace !== "hsv" && colorSpace !== "lch"} -
-
-
Rotate
- - -
-
-
Around which point?
-
+
+
+
Rotate
+ + +
+
+
Around which point?
+
+ + {#if zeroRotationSpaces.has(colorSpace)} - {#if zeroRotationSpaces.has(colorSpace)} - - {/if} + {/if} - {#each focusedColors as colorIdx} - + {#each focusedColors as colorIdx} + + {/each} +
+
+ Rotate about the + - {#each ["x", "y", "z"] as axis} - - {/each} - - Axis -
+ + Axis
-
-
-
-
- -
+ +
+
+
+ +
-{/if} +