diff --git a/src/main/java/com/gcc/publicgrievance/configuration/DataSourceConfig.java b/src/main/java/com/gcc/publicgrievance/configuration/DataSourceConfig.java index f7c5feb..6b8e4dd 100644 --- a/src/main/java/com/gcc/publicgrievance/configuration/DataSourceConfig.java +++ b/src/main/java/com/gcc/publicgrievance/configuration/DataSourceConfig.java @@ -21,7 +21,7 @@ import javax.sql.DataSource; @EnableTransactionManagement public class DataSourceConfig { -// //private static String dbpassword = "gccroot"; + //private static String dbpassword = "gccroot"; // private static String host = "localhost"; // private static String dbpassword = "root"; diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 09cb954..a015c68 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1 +1 @@ -spring.profiles.active= prod \ No newline at end of file +spring.profiles.active=prod \ No newline at end of file diff --git a/src/main/resources/templates/User/registercomplaints.html b/src/main/resources/templates/User/registercomplaints.html index a90c3ca..8692ed4 100644 --- a/src/main/resources/templates/User/registercomplaints.html +++ b/src/main/resources/templates/User/registercomplaints.html @@ -179,7 +179,7 @@ max-width: 100%; } - #pac-input { +/* #pac-input { position: absolute; top: 10px; left: 50%; @@ -203,8 +203,21 @@ background-color: white; border-radius: 4px; padding: 0; - /* Removed extra padding to match the input width */ - } + } */ + + #pac-input { + + width: 100%; + padding: 10px; + + border: 1px solid #ccc; + border-radius: 4px; + + font-size: 15px; + + box-sizing: border-box; + } + #search-box { width: 100%; @@ -218,7 +231,7 @@ /* Makes sure padding is considered in width */ } - #suggestions { + /* #suggestions { border: 1px solid #ccc; border-radius: 4px; max-height: 200px; @@ -227,9 +240,7 @@ background-color: white; display: none; width: 100%; - /* Matches the width of the container and input */ box-sizing: border-box; - /* Ensures the width includes borders and padding */ } #suggestions ul { @@ -245,7 +256,60 @@ #suggestions ul li:hover { background-color: #f0f0f0; - } + } */ + + #suggestions { + + width: 100%; + + display: none; + + background: #fff; + + border: 1px solid #ccc; + + border-top: none; + + max-height: 220px; + + overflow-y: auto; + + box-shadow: 0 2px 8px rgba(0, 0, 0, .25); + } + + #suggestions ul { + + margin: 0; + padding: 0; + list-style: none; + } + + #suggestions li { + + padding: 10px 12px; + + cursor: pointer; + + border-bottom: 1px solid #eee; + } + + #suggestions li:hover { + + background: #f5f5f5; + } + + #search-container { + + position: absolute; + top: 10px; + left: 50%; + transform: translateX(-50%); + + width: 420px; + + z-index: 1000; + } + /*header css*/ .header { @@ -581,13 +645,15 @@
- -
-
+
+ +
+
+