From 455a07856052b777137d57d3a805a3ff489b3bff Mon Sep 17 00:00:00 2001 From: Vidyoot Senthil Date: Wed, 18 Dec 2024 14:52:16 -0600 Subject: [PATCH] cleanup: fix ordering on public page + tooltip --- .../src/pages/dataset/PublicPageSettings.tsx | 134 +++++++++--------- 1 file changed, 68 insertions(+), 66 deletions(-) diff --git a/frontends/dashboard/src/pages/dataset/PublicPageSettings.tsx b/frontends/dashboard/src/pages/dataset/PublicPageSettings.tsx index bde1ebbf9..bc56ac765 100644 --- a/frontends/dashboard/src/pages/dataset/PublicPageSettings.tsx +++ b/frontends/dashboard/src/pages/dataset/PublicPageSettings.tsx @@ -625,11 +625,78 @@ const PublicPageControls = () => { options={Object.keys(HeroPatterns)} /> + +
+
+ + { + setExtraParams( + "heroPattern", + "foregroundColor", + e.currentTarget.value, + ); + }} + class="block w-full rounded border border-neutral-300 px-3 py-1.5 shadow-sm placeholder:text-neutral-400 focus:outline-magenta-500 sm:text-sm sm:leading-6" + /> +
+
+ + + { + setExtraParams( + "heroPattern", + "backgroundColor", + e.currentTarget.value, + ); + }} + class="block w-full rounded border border-neutral-300 px-3 py-1.5 shadow-sm placeholder:text-neutral-400 focus:outline-magenta-500 sm:text-sm sm:leading-6" + /> + +
+
+ + { + setExtraParams( + "heroPattern", + "foregroundOpacity", + parseInt(e.currentTarget.value) / 100, + ); + }} + value={ + (extraParams.heroPattern?.foregroundOpacity || 0.5) * 100 + } + /> +
+
+
} />
@@ -643,71 +710,6 @@ const PublicPageControls = () => { />
- -
-
- - { - setExtraParams( - "heroPattern", - "foregroundColor", - e.currentTarget.value, - ); - }} - class="block w-full rounded border border-neutral-300 px-3 py-1.5 shadow-sm placeholder:text-neutral-400 focus:outline-magenta-500 sm:text-sm sm:leading-6" - /> -
-
- - - { - setExtraParams( - "heroPattern", - "backgroundColor", - e.currentTarget.value, - ); - }} - class="block w-full rounded border border-neutral-300 px-3 py-1.5 shadow-sm placeholder:text-neutral-400 focus:outline-magenta-500 sm:text-sm sm:leading-6" - /> - -
-
- - { - setExtraParams( - "heroPattern", - "foregroundOpacity", - parseInt(e.currentTarget.value) / 100, - ); - }} - value={ - (extraParams.heroPattern?.foregroundOpacity || 0.5) * 100 - } - /> -
-
-
Advanced Settings