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; }