From e9f440ef13ac82f5afdb7bbc35a3c030ccdccea4 Mon Sep 17 00:00:00 2001 From: samueljd Date: Tue, 14 Nov 2023 15:15:11 +0200 Subject: [PATCH] fixed-ui-bugs --- .../EditorPage/TextEditor/Popup.jsx | 4 +- .../EditorPage/TextEditor/PopupButton.jsx | 1 - renderer/src/components/Popup/Dialog.jsx | 2 +- renderer/src/components/Popup/index.jsx | 4 +- .../src/components/Projects/CustomList.js | 4 +- .../src/components/Projects/NewProject.js | 38 ++++++++++--------- .../CreateProject/AdvancedSettingsDropdown.js | 2 +- renderer/src/modules/projects/CustomList.js | 4 +- 8 files changed, 30 insertions(+), 29 deletions(-) diff --git a/renderer/src/components/EditorPage/TextEditor/Popup.jsx b/renderer/src/components/EditorPage/TextEditor/Popup.jsx index 7440a69ea..76421b07d 100644 --- a/renderer/src/components/EditorPage/TextEditor/Popup.jsx +++ b/renderer/src/components/EditorPage/TextEditor/Popup.jsx @@ -39,9 +39,9 @@ const Popup = ({ action, setTriggerVerseInsert }) => { return (
diff --git a/renderer/src/components/EditorPage/TextEditor/PopupButton.jsx b/renderer/src/components/EditorPage/TextEditor/PopupButton.jsx index 66ca1e208..4da7fdf74 100644 --- a/renderer/src/components/EditorPage/TextEditor/PopupButton.jsx +++ b/renderer/src/components/EditorPage/TextEditor/PopupButton.jsx @@ -20,7 +20,6 @@ const PopupButton = ({ console.log({ isPopupOpen }); const handlePopupClose = () => { - console.log('handlePopupClose sdf'); setIsPopupOpen(false); }; console.log({ isPopupOpen }); diff --git a/renderer/src/components/Popup/Dialog.jsx b/renderer/src/components/Popup/Dialog.jsx index a78820008..956a01557 100644 --- a/renderer/src/components/Popup/Dialog.jsx +++ b/renderer/src/components/Popup/Dialog.jsx @@ -50,7 +50,7 @@ const DialogContent = React.forwardRef( {children} diff --git a/renderer/src/components/Projects/CustomList.js b/renderer/src/components/Projects/CustomList.js index 5a5ecf69e..c1b11e1c8 100644 --- a/renderer/src/components/Projects/CustomList.js +++ b/renderer/src/components/Projects/CustomList.js @@ -10,7 +10,7 @@ export default function CustomList({ const dropdownWidth = width ?? 40; return ( -
+
{selected?.title} @@ -26,7 +26,7 @@ export default function CustomList({ leaveFrom="opacity-100" leaveTo="opacity-0" > - + {options.map((option) => ( {children}
+
{children}
); } @@ -317,10 +317,10 @@ export default function NewProject({ call, project, closeEdit }) {
) : ( -
+
-
+

{t('label-project-name')} * @@ -334,7 +334,7 @@ export default function NewProject({ call, project, closeEdit }) { handleProjectName(e); }} disabled={call !== 'new'} - className={classNames(call !== 'new' ? 'bg-gray-200' : '', 'w-52 lg:w-80 block rounded shadow-sm sm:text-sm focus:border-primary border-gray-300')} + className={classNames(call !== 'new' ? 'bg-gray-200' : '', 'w-48 lg:w-full rounded shadow-sm sm:text-sm focus:border-primary border-gray-300')} /> {error.projectName[0]?.message || error.projectName[1]?.message}

{t('label-description')}

@@ -346,12 +346,12 @@ export default function NewProject({ call, project, closeEdit }) { onChange={(e) => { setNewProjectFields({ ...newProjectFields, description: e.target.value }); }} - className="bg-white w-52 lg:w-80 h-28 block rounded shadow-sm sm:text-sm focus:border-primary border-gray-300" + className="bg-white w-48 lg:w-full h-28 block rounded shadow-sm sm:text-sm focus:border-primary border-gray-300" /> {error.description[0]?.message}
-
+

@@ -373,18 +373,20 @@ export default function NewProject({ call, project, closeEdit }) {

- {headerDropDown !== 'Audio' - && ( -
- - {language.ld ? language.ld : 'LTR'} - -
- )} -

- {t('label-target-language')} - * -

+
+

+ {t('label-target-language')} + * +

+ {headerDropDown !== 'Audio' + && ( +
+ + {language.ld ? language.ld : 'LTR'} + +
+ )} +
*/} -
+
selectCanon(canonList[0])} diff --git a/renderer/src/modules/projects/CustomList.js b/renderer/src/modules/projects/CustomList.js index a08a9c798..d51086530 100644 --- a/renderer/src/modules/projects/CustomList.js +++ b/renderer/src/modules/projects/CustomList.js @@ -10,7 +10,7 @@ export default function CustomList({ const dropdownWidth = width ?? 40; return ( -
+
{selected?.title} @@ -26,7 +26,7 @@ export default function CustomList({ leaveFrom="opacity-100" leaveTo="opacity-0" > - + {options.map((option) => (