From 6c1a0b17333b77d109454263f365bf3853c69fc2 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 | 132 +++++++++--------- server/static/output.css | 19 --- 2 files changed, 68 insertions(+), 83 deletions(-) diff --git a/frontends/dashboard/src/pages/dataset/PublicPageSettings.tsx b/frontends/dashboard/src/pages/dataset/PublicPageSettings.tsx index b1486566e..0ad6fc9d2 100644 --- a/frontends/dashboard/src/pages/dataset/PublicPageSettings.tsx +++ b/frontends/dashboard/src/pages/dataset/PublicPageSettings.tsx @@ -663,11 +663,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 + } + /> +
+
+
} />
@@ -681,69 +748,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", - parseFloat(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" - /> -
-
-
Advanced Settings diff --git a/server/static/output.css b/server/static/output.css index a2e625659..f2b52896a 100644 --- a/server/static/output.css +++ b/server/static/output.css @@ -612,10 +612,6 @@ video { margin-top: 2rem; } -.mt-0\.5 { - margin-top: 0.125rem; -} - .line-clamp-1 { overflow: hidden; display: -webkit-box; @@ -800,11 +796,6 @@ video { background-color: rgb(249 250 251 / var(--tw-bg-opacity)); } -.bg-white { - --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)); -} - .object-cover { -o-object-fit: cover; object-fit: cover; @@ -913,16 +904,6 @@ video { color: rgb(255 255 255 / var(--tw-text-opacity)); } -.text-black { - --tw-text-opacity: 1; - color: rgb(0 0 0 / var(--tw-text-opacity)); -} - -.text-gray-900 { - --tw-text-opacity: 1; - color: rgb(17 24 39 / var(--tw-text-opacity)); -} - .underline { text-decoration-line: underline; }