From 9fcde5158452923f32774e72712978a18256253c Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Thu, 20 Mar 2025 13:41:50 +0000 Subject: [PATCH] fixed broken layouts --- rollup.config.js | 2 -- src/Components/AppShell/ContextWrapper.tsx | 2 +- src/Components/AppShell/NavBar.tsx | 26 ++++++++-------- src/Components/AppShell/SideBar.tsx | 4 +-- src/Components/Auth/LoginPage.tsx | 12 ++++---- src/Components/Auth/RequestPasswordPage.tsx | 10 +++---- src/Components/Auth/SetNewPasswordPage.tsx | 10 +++---- src/Components/Auth/SignupPage.tsx | 14 ++++----- src/Components/Gaming/Modal.tsx | 8 ++--- src/Components/Gaming/Quests.tsx | 30 +++++++++---------- src/Components/Input/ComboBoxInput.tsx | 2 +- src/Components/Input/TextAreaInput.tsx | 8 ++--- src/Components/Input/TextInput.cy.tsx | 4 +-- src/Components/Input/TextInput.tsx | 8 ++--- .../__snapshots__/ComboBoxInput.spec.tsx.snap | 2 +- .../__snapshots__/TextAreaInput.spec.tsx.snap | 12 ++++---- .../__snapshots__/TextInput.spec.tsx.snap | 12 ++++---- .../Map/Subcomponents/AddButton.tsx | 10 +++---- .../Subcomponents/Controls/FilterControl.tsx | 18 +++++------ .../Controls/GratitudeControl.tsx | 4 +-- .../Subcomponents/Controls/LayerControl.tsx | 14 ++++----- .../Subcomponents/Controls/LocateControl.tsx | 6 ++-- .../Subcomponents/Controls/QuestControl.tsx | 4 +-- .../Subcomponents/Controls/SearchControl.tsx | 8 ++--- .../Subcomponents/Controls/SidebarControl.tsx | 6 ++-- .../Subcomponents/Controls/TagsControl.tsx | 6 ++-- .../Map/Subcomponents/ItemFormPopup.tsx | 6 ++-- .../ItemPopupComponents/HeaderView.tsx | 14 ++++----- .../ItemPopupComponents/PopupButton.tsx | 2 +- .../PopupCheckboxInput.tsx | 6 ++-- .../Map/Subcomponents/SelectPosition.tsx | 6 ++-- src/Components/Map/UtopiaMapInner.tsx | 2 +- src/Components/Profile/ProfileForm.tsx | 2 +- src/Components/Profile/ProfileView.tsx | 2 +- .../Profile/Subcomponents/ActionsButton.tsx | 6 ++-- .../Profile/Subcomponents/AvatarWidget.tsx | 8 ++--- .../Profile/Subcomponents/ContactInfoView.tsx | 2 +- .../Profile/Subcomponents/FormHeader.tsx | 4 +-- .../Subcomponents/LinkedItemsHeaderView.tsx | 8 ++--- .../Profile/Subcomponents/MarkdownHint.tsx | 2 +- .../Profile/Subcomponents/PlusButton.tsx | 4 +-- .../Profile/Subcomponents/TagsWidget.tsx | 8 ++--- src/Components/Profile/Templates/TabsForm.tsx | 16 +++++----- src/Components/Profile/Templates/TabsView.tsx | 28 ++++++++--------- src/Components/Profile/UserSettings.tsx | 6 ++-- src/Components/Templates/AttestationForm.tsx | 10 +++---- src/Components/Templates/CardPage.tsx | 2 +- src/Components/Templates/DialogModal.tsx | 6 ++-- src/Components/Templates/EmojiPicker.tsx | 6 ++-- src/Components/Templates/ItemCard.tsx | 2 +- src/Components/Templates/MapOverlayPage.tsx | 4 +-- .../Templates/OverlayItemsIndexPage.tsx | 10 +++---- src/Components/Templates/SelectUser.tsx | 10 +++---- src/Components/Templates/TagView.tsx | 2 +- src/Components/Templates/TitleCard.tsx | 4 +-- src/assets/chevron.svg | 2 +- src/assets/css/leaflet.css | 13 ++++---- src/assets/css/tailwind.css | 12 ++++---- src/assets/css/toastify.css | 18 +++++------ src/assets/plus.svg | 2 +- src/assets/targetDot.svg | 2 +- src/assets/user.svg | 2 +- 62 files changed, 239 insertions(+), 242 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index dac65839..ed8799f3 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -55,11 +55,9 @@ export default [ 'react-toastify', 'react-string-replace', 'react-toastify/dist/ReactToastify.css', - 'tw-elements', 'react-router-dom', 'react-leaflet-cluster', '@tanstack/react-query', - 'tributejs', 'prop-types', 'leaflet/dist/leaflet.css', '@heroicons/react/20/solid', diff --git a/src/Components/AppShell/ContextWrapper.tsx b/src/Components/AppShell/ContextWrapper.tsx index 6cafd1a2..50777b63 100644 --- a/src/Components/AppShell/ContextWrapper.tsx +++ b/src/Components/AppShell/ContextWrapper.tsx @@ -22,7 +22,7 @@ const ContextCheckContext = createContext(false) const CloseButton = ({ closeToast }: CloseButtonProps) => ( diff --git a/src/Components/Auth/RequestPasswordPage.tsx b/src/Components/Auth/RequestPasswordPage.tsx index b750249c..0f15acd5 100644 --- a/src/Components/Auth/RequestPasswordPage.tsx +++ b/src/Components/Auth/RequestPasswordPage.tsx @@ -43,19 +43,19 @@ export function RequestPasswordPage({ resetUrl }: { resetUrl: string }) { placeholder='E-Mail' value={email} onChange={(e) => setEmail(e.target.value)} - className='tw-input tw-input-bordered tw:w-full tw:max-w-xs' + className='tw:input tw:input-bordered tw:w-full tw:max-w-xs' /> -
+
diff --git a/src/Components/Auth/SetNewPasswordPage.tsx b/src/Components/Auth/SetNewPasswordPage.tsx index 0004e6c2..c8f59591 100644 --- a/src/Components/Auth/SetNewPasswordPage.tsx +++ b/src/Components/Auth/SetNewPasswordPage.tsx @@ -42,19 +42,19 @@ export function SetNewPasswordPage() { type='password' placeholder='Password' onChange={(e) => setPassword(e.target.value)} - className='tw-input tw-input-bordered tw:w-full tw:max-w-xs' + className='tw:input tw:input-bordered tw:w-full tw:max-w-xs' /> -
+
diff --git a/src/Components/Auth/SignupPage.tsx b/src/Components/Auth/SignupPage.tsx index fe9d44cd..1eb51ea9 100644 --- a/src/Components/Auth/SignupPage.tsx +++ b/src/Components/Auth/SignupPage.tsx @@ -62,32 +62,32 @@ export function SignupPage() { placeholder='Name' value={userName} onChange={(e) => setUserName(e.target.value)} - className='tw-input tw-input-bordered tw:w-full tw:max-w-xs' + className='tw:input tw:input-bordered tw:w-full tw:max-w-xs' /> setEmail(e.target.value)} - className='tw-input tw-input-bordered tw:w-full tw:max-w-xs' + className='tw:input tw:input-bordered tw:w-full tw:max-w-xs' /> setPassword(e.target.value)} - className='tw-input tw-input-bordered tw:w-full tw:max-w-xs' + className='tw:input tw:input-bordered tw:w-full tw:max-w-xs' /> -
+
diff --git a/src/Components/Gaming/Modal.tsx b/src/Components/Gaming/Modal.tsx index ffe0ad17..32f66058 100644 --- a/src/Components/Gaming/Modal.tsx +++ b/src/Components/Gaming/Modal.tsx @@ -20,14 +20,14 @@ export function Modal({ return ( <> {/* You can open the modal using ID.showModal() method */} - -
- {children}
-
+
diff --git a/src/Components/Gaming/Quests.tsx b/src/Components/Gaming/Quests.tsx index c9872844..944a2633 100644 --- a/src/Components/Gaming/Quests.tsx +++ b/src/Components/Gaming/Quests.tsx @@ -39,56 +39,56 @@ export function Quests() { return ( <> {questsOpen ? ( -
-
-
+
+
+
-

+

Level 1

  • -
  • -
  • -
- {/** */}{' '} + {/** */}{' '}
) : ( diff --git a/src/Components/Input/ComboBoxInput.tsx b/src/Components/Input/ComboBoxInput.tsx index edeccde8..398e8005 100644 --- a/src/Components/Input/ComboBoxInput.tsx +++ b/src/Components/Input/ComboBoxInput.tsx @@ -14,7 +14,7 @@ const ComboBoxInput = ({ id, options, value, onValueChange }: ComboBoxProps) => return (