diff --git a/app/lish/createPub/UpdatePubForm.tsx b/app/lish/createPub/UpdatePubForm.tsx index 6f9d7b18..ec65254f 100644 --- a/app/lish/createPub/UpdatePubForm.tsx +++ b/app/lish/createPub/UpdatePubForm.tsx @@ -43,7 +43,7 @@ export const EditPubForm = () => { return (
{ if (!pubData) return; e.preventDefault(); @@ -100,7 +100,7 @@ export const EditPubForm = () => { Publication Name

{

- {props.domain} +
+
{props.domain}
{pending ? (
+
{ : `calc(${leafletBGRepeat.data.value}px / 2 )`, }} > - setOpenPicker(pickers)} - /> -
- + setOpenPicker(pickers)} + setValue={set("theme/page-background")} /> - + +
+ setOpenPicker(pickers)} />
+ setOpenPicker(pickers)} + />
diff --git a/components/ThemeManager/Pickers/ImagePicker.tsx b/components/ThemeManager/Pickers/ImagePicker.tsx index a31fcd6a..178f129b 100644 --- a/components/ThemeManager/Pickers/ImagePicker.tsx +++ b/components/ThemeManager/Pickers/ImagePicker.tsx @@ -2,6 +2,8 @@ import * as Slider from "@radix-ui/react-slider"; import { theme } from "../../../tailwind.config"; import { Color } from "react-aria-components"; +import { Input } from "components/Input"; +import { Radio } from "components/Checkbox"; import { useEntity, useReplicache } from "src/replicache"; import { addImage } from "src/utils/addImage"; @@ -27,70 +29,37 @@ export const ImageSettings = (props: { let { rep } = useReplicache(); return ( <> -
- - -
-
- {pageType !== "canvas" && ( - - )} - + - {(repeat || pageType === "canvas") && ( - { - rep?.mutate.assertFact({ - entity: props.entityID, - attribute: props.card - ? "theme/card-background-image-repeat" - : "theme/background-image-repeat", - data: { type: "number", value: value[0] }, - }); - }} - > - - - - )}
); diff --git a/components/ThemeManager/Pickers/LeafletBGPicker.tsx b/components/ThemeManager/Pickers/LeafletBGPicker.tsx index 29609c53..163622e7 100644 --- a/components/ThemeManager/Pickers/LeafletBGPicker.tsx +++ b/components/ThemeManager/Pickers/LeafletBGPicker.tsx @@ -20,6 +20,7 @@ import { useColorAttribute } from "components/ThemeManager/useColorAttribute"; import { Separator } from "components/Layout"; import { onMouseDown } from "src/utils/iosInputMouseDown"; import { BlockImageSmall } from "components/Icons/BlockImageSmall"; +import { DeleteSmall } from "components/Icons/DeleteSmall"; export const LeafletBGPicker = (props: { entityID: string; @@ -30,6 +31,7 @@ export const LeafletBGPicker = (props: { setValue: (c: Color) => void; }) => { let bgImage = useEntity(props.entityID, "theme/background-image"); + let bgRepeat = useEntity(props.entityID, "theme/background-image-repeat"); let bgColor = useColorAttribute(props.entityID, "theme/page-background"); let open = props.openPicker == props.thisPicker; let { rep } = useReplicache(); @@ -93,19 +95,29 @@ export const LeafletBGPicker = (props: { )}
-