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 deleted file mode 100644 index 66ca1e208..000000000 --- a/renderer/src/components/EditorPage/TextEditor/PopupButton.jsx +++ /dev/null @@ -1,57 +0,0 @@ -import React, { useState } from 'react'; -import { - insertVerseNumber, insertChapterNumber, insertFootnote, insertXRef, -} from '@/util/cursorUtils'; -import Popup from './Popup'; - -export const functionMapping = { - insertVerseNumber: { title: 'Insert Verse', function: insertVerseNumber }, - insertChapterNumber: { title: 'Insert Chapter', function: insertChapterNumber }, - insertFootnote: { title: 'Insert Footnote', function: insertFootnote }, - insertXRef: { title: 'Insert Cross Reference', function: insertXRef }, -}; -const PopupButton = ({ - icon, action, isPopupOpen, setIsPopupOpen, -}) => { - const handlePopupOpen = (e) => { - e.stopPropagation(); - setIsPopupOpen(true); - }; - console.log({ isPopupOpen }); - - const handlePopupClose = () => { - console.log('handlePopupClose sdf'); - setIsPopupOpen(false); - }; - console.log({ isPopupOpen }); - return ( -
e.stopPropagation()} - onClick={(e) => e.stopPropagation()} - onFocus={(e) => e.stopPropagation()} - onMouseOver={(e) => e.stopPropagation()} - > - - {/* {isPopupOpen && ( */} - - {/* )} */} -
- ); -}; - -export default PopupButton; 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) => (