From 68346e075ac2b27ba114b671c760dfc7b14112ad Mon Sep 17 00:00:00 2001 From: Frank Noirot Date: Tue, 10 Aug 2021 00:24:02 -0400 Subject: [PATCH 1/4] fixed safari z-index issue with MaterialUI model style tweak. --- app/web/src/components/LoginModal/LoginModal.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/web/src/components/LoginModal/LoginModal.tsx b/app/web/src/components/LoginModal/LoginModal.tsx index e3fe2cd..1b83f8b 100644 --- a/app/web/src/components/LoginModal/LoginModal.tsx +++ b/app/web/src/components/LoginModal/LoginModal.tsx @@ -1,4 +1,5 @@ import { useState } from 'react' +import { makeStyles } from '@material-ui/core/styles'; import Dialog from '@material-ui/core/Dialog' import Tab from '@material-ui/core/Tab' import Tabs from '@material-ui/core/Tabs' @@ -10,6 +11,12 @@ import { toast } from '@redwoodjs/web/toast' import { Link, routes } from '@redwoodjs/router' import { subscribe } from 'src/helpers/subscribe' +const useStyles = makeStyles({ + root: { + transform: `translate3d(0,0,50px)`, + }, +}) + const LoginModal = ({ open, onClose, shouldStartWithSignup = false }) => { const { logIn, signUp } = useAuth() @@ -20,6 +27,7 @@ const LoginModal = ({ open, onClose, shouldStartWithSignup = false }) => { } const [checkBox, setCheckBox] = useState(true) const [error, setError] = useState('') + const classes = useStyles() const onSubmitSignUp = async ({ email, password, name, userName }) => { try { @@ -47,7 +55,7 @@ const LoginModal = ({ open, onClose, shouldStartWithSignup = false }) => { } } return ( - +
Date: Wed, 11 Aug 2021 19:27:08 +1000 Subject: [PATCH 2/4] Fix safari flexbox/gap issue with grid related to #435 --- app/web/src/components/CadPackage/CadPackage.tsx | 2 +- app/web/src/components/Customizer/Customizer.tsx | 2 +- .../EditableProjecTitle/EditableProjecTitle.tsx | 2 +- app/web/src/components/EditorMenu/EditorMenu.tsx | 2 +- app/web/src/components/EmojiReaction/EmojiReaction.tsx | 4 ++-- app/web/src/components/IdeHeader/IdeHeader.tsx | 4 ++-- app/web/src/components/ProjectProfile/ProjectProfile.tsx | 8 ++++---- app/web/src/components/SocialCardCell/SocialCardCell.tsx | 4 ++-- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/web/src/components/CadPackage/CadPackage.tsx b/app/web/src/components/CadPackage/CadPackage.tsx index 19c3a7c..4354690 100644 --- a/app/web/src/components/CadPackage/CadPackage.tsx +++ b/app/web/src/components/CadPackage/CadPackage.tsx @@ -12,7 +12,7 @@ const CadPackage = ({ cadPackage, className = '' }: CadPackageProps) => { return (
{ }`} >
-
+
{/* Side panel */} -
+

{project?.title.replace(/-/g, ' ')}

@@ -181,7 +181,7 @@ const ProjectProfile = ({ />
-
+
{new Date(project?.createdAt).toDateString()} diff --git a/app/web/src/components/SocialCardCell/SocialCardCell.tsx b/app/web/src/components/SocialCardCell/SocialCardCell.tsx index ded726f..151bef7 100644 --- a/app/web/src/components/SocialCardCell/SocialCardCell.tsx +++ b/app/web/src/components/SocialCardCell/SocialCardCell.tsx @@ -100,7 +100,7 @@ export const Success = ({ className="h-24 grid bg-ch-gray-900 relative" style={{ gridTemplateColumns: '7fr 5fr' }} > -
+
{[ { svg: 'reactions', @@ -113,7 +113,7 @@ export const Success = ({ count: 0, }, ].map(({ svg, title, count }, index) => ( -
+
{count}
From 000bf4c027add9675c1082c3a8f3cbe309a18f34 Mon Sep 17 00:00:00 2001 From: Kurt Hutten Date: Wed, 11 Aug 2021 20:14:03 +1000 Subject: [PATCH 3/4] fix hight issue on details page --- .../ProjectProfile/ProjectProfile.tsx | 256 +++++++++--------- 1 file changed, 129 insertions(+), 127 deletions(-) diff --git a/app/web/src/components/ProjectProfile/ProjectProfile.tsx b/app/web/src/components/ProjectProfile/ProjectProfile.tsx index 4a4899f..9f378eb 100644 --- a/app/web/src/components/ProjectProfile/ProjectProfile.tsx +++ b/app/web/src/components/ProjectProfile/ProjectProfile.tsx @@ -128,146 +128,148 @@ const ProjectProfile = ({ projectId={project?.id} />
-
-
+
+
{/* Viewer */}
{/* Side panel */} -
-

- {project?.title.replace(/-/g, ' ')} -

-
- Built with - -
- { - if (!isEditable) { - setIsEditable(true) - } else { - onEditSaveClick() - setIsEditable(false) - } - }} - isEditable={isEditable} - > -
- e?.target?.id === 'description-wrap' && - editorRef?.current?.focusAtEnd() - } - > - +
+

+ {project?.title.replace(/-/g, ' ')} +

+
+ Built with +
- -
- - {new Date(project?.createdAt).toDateString()} + { + if (!isEditable) { + setIsEditable(true) + } else { + onEditSaveClick() + setIsEditable(false) + } + }} + isEditable={isEditable} + > +
+ e?.target?.id === 'description-wrap' && + editorRef?.current?.focusAtEnd() + } + > + +
- - {new Date(project?.updatedAt).toDateString()} +
+ + {new Date(project?.createdAt).toDateString()} + + + {new Date(project?.updatedAt).toDateString()} + +
+ + setIsReactionsModalOpen(true)} + /> -
- - setIsReactionsModalOpen(true)} - /> - - - {!isEditable && ( - <> - {currentUser && ( - <> -
-