Sfoglia il codice sorgente

don't allow x scoll on product search

master
azri 4 settimane fa
parent
commit
47f5b8eb49
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      src/components/SearchProduct/SearchProduct.jsx

+ 2
- 2
src/components/SearchProduct/SearchProduct.jsx Vedi File

@@ -104,7 +104,7 @@ const SearchProduct = ({ onClose }) => {
104 104
       </Box>
105 105
 
106 106
       {/* Product List */}
107
-      <Grid container sx={{ width: "100%", overflowY:"scroll" }} columns={12}>
107
+      <Grid container sx={{ width: "100%", overflowY:"scroll", overflowX:"hidden" }} columns={12}>
108 108
         {searchedProducts.length > 0 ? (
109 109
           searchedProducts.map((product) => {
110 110
 
@@ -121,7 +121,7 @@ const SearchProduct = ({ onClose }) => {
121 121
                     alignItems: "center",
122 122
                     py: 2,
123 123
                     px: 2,
124
-                    width: "100%",
124
+                    width: "98%",
125 125
                     cursor: "pointer",
126 126
                     backgroundColor: "rgba(255,255,255,0.2)",
127 127
                     boxShadow: "none",

Loading…
Annulla
Salva