From 175d7b502f20e14a886c3c072ca595d554a47864 Mon Sep 17 00:00:00 2001 From: John Darragh Date: Wed, 25 Sep 2024 17:47:07 -0700 Subject: [PATCH] Requested Adjustments to TextPopup component (#1879) --- .../Projects/ColumnHeaderPopups/TextPopup.js | 61 ++++++++++++------- 1 file changed, 39 insertions(+), 22 deletions(-) diff --git a/client/src/components/Projects/ColumnHeaderPopups/TextPopup.js b/client/src/components/Projects/ColumnHeaderPopups/TextPopup.js index 3f5c9cda..6a03875f 100644 --- a/client/src/components/Projects/ColumnHeaderPopups/TextPopup.js +++ b/client/src/components/Projects/ColumnHeaderPopups/TextPopup.js @@ -10,19 +10,21 @@ import { createUseStyles } from "react-jss"; const useStyles = createUseStyles({ searchBarWrapper: { + width: "100%", position: "relative", alignSelf: "center", marginBottom: "0.5rem" }, searchBar: { maxWidth: "100%", - width: "20em", - padding: "12px 12px 12px 48px", - marginRight: "0.5rem" + width: "100%", + padding: "12px 12px 12px 12px", + boxSizing: "border-box" + // marginRight: "0.5rem" }, searchIcon: { position: "absolute", - left: "16px", + right: "16px", top: "14px" }, listItem: { @@ -69,6 +71,7 @@ const TextPopup = ({ criteria[header.id + "List"].map(s => ({ value: s, label: s })) ); const [searchString, setSearchString] = useState(""); + const [targetVisibility, setTargetVisibility] = useState(false); // To build the drop-down list, we want to apply all the criteria that // are currently selected EXCEPT the criteria we are currently editing. @@ -133,16 +136,18 @@ const TextPopup = ({ const placeholderComponent = (
Search Icon -
Search by Keyword
+
Filter
); return ( -
+
) : ( - + <> + + {targetVisibility ?
: null} + )}
-
+