From cd1e96f6b15757e0d0b1e0ad2e3996114e713b1f Mon Sep 17 00:00:00 2001 From: sp1603 <113911053+sp1603@users.noreply.github.com> Date: Sat, 16 Nov 2024 14:42:31 -0500 Subject: [PATCH 1/2] fix bugs --- src/assets/styles/main.css | 3 ++- .../dashboard/TextComponent/SimpleEditor.tsx | 23 +++++++++++++++++++ src/components/dashboard/TimeTable.tsx | 2 +- src/components/home/index.tsx | 22 +++++++++++++----- src/components/map/index.tsx | 4 ++-- src/utils/Localization.tsx | 4 ++-- 6 files changed, 46 insertions(+), 12 deletions(-) diff --git a/src/assets/styles/main.css b/src/assets/styles/main.css index a4021ca..2d95e49 100644 --- a/src/assets/styles/main.css +++ b/src/assets/styles/main.css @@ -132,11 +132,12 @@ h2 { .map-list { position: relative; width: 100vw; - height: calc(200vh - 70px); + height: 100vh; z-index: 2; background: white; padding-top: 10px; } + .map-list::-webkit-scrollbar { display: none; } diff --git a/src/components/dashboard/TextComponent/SimpleEditor.tsx b/src/components/dashboard/TextComponent/SimpleEditor.tsx index a9b6f63..2cc69fc 100644 --- a/src/components/dashboard/TextComponent/SimpleEditor.tsx +++ b/src/components/dashboard/TextComponent/SimpleEditor.tsx @@ -153,9 +153,32 @@ export function SimpleEditor( return null; } + const handleTitleChange = (event: React.ChangeEvent) => { + setEditorState({ + ...editorState, + title: event.target.value, + }); + }; return (
+
+ + +
{ const selectFormatter = (cell, row, index) => ( { diff --git a/src/components/home/index.tsx b/src/components/home/index.tsx index 051b703..18b7085 100644 --- a/src/components/home/index.tsx +++ b/src/components/home/index.tsx @@ -108,12 +108,6 @@ function Home({ firebaseAuth, firestore }) { - - Deploys by Netlify -
+
+ + Deploys by Netlify + +
{ }} > {!showInfo && renderTagControl()} -
+
{ activeProviders[selectedIndex] && (
-
+
diff --git a/src/utils/Localization.tsx b/src/utils/Localization.tsx index 42c012f..bb3d61b 100644 --- a/src/utils/Localization.tsx +++ b/src/utils/Localization.tsx @@ -22,8 +22,8 @@ const localizationStrings = new LocalizedStrings({ signOut: "Sign Out", searchProviderName: "Search provider name", searchZipcode: "Search locations", - hideLabel: "Hide map", - showLabel: "Hide map", + hideLabel: "Show map", + showLabel: "Show map", languagesLabel: "Languages", agesLabel: "Ages", insuranceLabel: "Insurance", From 785aa6f75115c02e96ed0331e677240eb08aacfa Mon Sep 17 00:00:00 2001 From: Athanasios Taprantzis Date: Sat, 4 Jan 2025 19:28:16 +0200 Subject: [PATCH 2/2] Proper fix for bottom white space --- src/components/map/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/map/index.tsx b/src/components/map/index.tsx index a02672e..c490c79 100644 --- a/src/components/map/index.tsx +++ b/src/components/map/index.tsx @@ -1090,7 +1090,7 @@ const Map = (props) => { }} > {!showInfo && renderTagControl()} -
+