diff --git a/app/web/src/components/Hero/AssetWithGooey.tsx b/app/web/src/components/Hero/AssetWithGooey.tsx index dc8f83f..3f9b084 100644 --- a/app/web/src/components/Hero/AssetWithGooey.tsx +++ b/app/web/src/components/Hero/AssetWithGooey.tsx @@ -76,8 +76,8 @@ function Gooey() { const z = randomSign(Math.random() * 2) const position: [number, number, number] = [x, z, y] const size = Math.random() * 0.8 + 0.1 - const distort = (size > .1) ? Math.random() * .6 * size + 0.2 : 0 - const speed = (size > .1) ? (Math.random() * 0.8) / size / size + 0.1 : 0 + const distort = size > 0.1 ? Math.random() * 0.6 * size + 0.2 : 0 + const speed = size > 0.1 ? (Math.random() * 0.8) / size / size + 0.1 : 0 return { position, size, distort, speed } }) const secondSet = Array.from({ length: 5 }).map((_, index) => { @@ -87,8 +87,8 @@ function Gooey() { const z = randomSign(Math.random() * 2) const position: [number, number, number] = [x, z, y] const size = Math.random() * 0.2 + 0.05 - const distort = (size > .1) ? Math.random() * .8 * size + 0.2 : 0 - const speed = (size > .1) ? (Math.random() * 0.5) / size / size + 0.1 : 0 + const distort = size > 0.1 ? Math.random() * 0.8 * size + 0.2 : 0 + const speed = size > 0.1 ? (Math.random() * 0.5) / size / size + 0.1 : 0 return { position, size, distort, speed } }) return [...firstSet, ...secondSet] diff --git a/app/web/src/components/IdeSideBar/sidebarConfig.tsx b/app/web/src/components/IdeSideBar/sidebarConfig.tsx index 1ac449b..7b0e3fd 100644 --- a/app/web/src/components/IdeSideBar/sidebarConfig.tsx +++ b/app/web/src/components/IdeSideBar/sidebarConfig.tsx @@ -53,13 +53,14 @@ export const sidebarTopConfig: SidebarConfigType[] = [ ] const DiscordLink = () => ( - - Discord - + + Discord + ) const settingsConfig = [ @@ -74,7 +75,8 @@ const settingsConfig = [


- We're building configuration settings for the Viewer pane now. Join us on if you want to lend a hand! + We're building configuration settings for the Viewer pane now. Join us + on if you want to lend a hand!

), @@ -90,7 +92,8 @@ const settingsConfig = [


- We're building configuration settings for the Viewer pane now. Join us on if you want to lend a hand! + We're building configuration settings for the Viewer pane now. Join us + on if you want to lend a hand!

), @@ -106,7 +109,8 @@ const settingsConfig = [


- We're building configuration settings for the Viewer pane now. Join us on if you want to lend a hand! + We're building configuration settings for the Viewer pane now. Join us + on if you want to lend a hand!

), diff --git a/app/web/src/components/KeyValue/KeyValue.tsx b/app/web/src/components/KeyValue/KeyValue.tsx index 5d93378..1f75127 100644 --- a/app/web/src/components/KeyValue/KeyValue.tsx +++ b/app/web/src/components/KeyValue/KeyValue.tsx @@ -7,24 +7,25 @@ interface EditToggleType { } const EditToggle = ({ - onEdit = () => { console.error('Field declared editable without edit action.') }, + onEdit = () => { + console.error('Field declared editable without edit action.') + }, isEditing = false, -} : EditToggleType) => ( - (isEditing ? ( - - ) : ( - - )) -) +}: EditToggleType) => + isEditing ? ( + + ) : ( + + ) interface KeyValueType { keyName: string @@ -51,7 +52,7 @@ const KeyValue = ({ } > {keyName} - {edit && edit.hasPermissionToEdit && } + {edit && edit.hasPermissionToEdit && }
{children} diff --git a/app/web/src/components/ProjectCard/ProjectCard.tsx b/app/web/src/components/ProjectCard/ProjectCard.tsx index fa0f303..6652690 100644 --- a/app/web/src/components/ProjectCard/ProjectCard.tsx +++ b/app/web/src/components/ProjectCard/ProjectCard.tsx @@ -32,10 +32,7 @@ const ProjectCard = ({ title, mainImage, user, Reaction, cadPackage }) => (
- +
{title}
diff --git a/app/web/src/components/ProjectProfile/ProjectProfile.tsx b/app/web/src/components/ProjectProfile/ProjectProfile.tsx index 399021c..90e454b 100644 --- a/app/web/src/components/ProjectProfile/ProjectProfile.tsx +++ b/app/web/src/components/ProjectProfile/ProjectProfile.tsx @@ -102,41 +102,43 @@ const ProjectProfile = ({ className="px-3 py-2 rounded" />
- { (project?.description || hasPermissionToEdit) && { - if (!isEditing) { - setIsEditing(true) - } else { - onEditSaveClick() - setIsEditing(false) - } - }, - }} - > -
- e?.target?.id === 'description-wrap' && - editorRef?.current?.focusAtEnd() - } + {(project?.description || hasPermissionToEdit) && ( + { + if (!isEditing) { + setIsEditing(true) + } else { + onEditSaveClick() + setIsEditing(false) + } + }, + }} > - -
-
} +
+ e?.target?.id === 'description-wrap' && + editorRef?.current?.focusAtEnd() + } + > + +
+ + )}
{new Date(project?.createdAt).toDateString()} @@ -154,64 +156,68 @@ const ProjectProfile = ({ className="" /> - { currentUser && - {!isEditing && ( - <> - {currentUser && ( - <> -
-