Browse Source

don't allow x scoll on product search

master
azri 4 weeks ago
parent
commit
47f5b8eb49
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/components/SearchProduct/SearchProduct.jsx

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

104
       </Box>
104
       </Box>
105
 
105
 
106
       {/* Product List */}
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
         {searchedProducts.length > 0 ? (
108
         {searchedProducts.length > 0 ? (
109
           searchedProducts.map((product) => {
109
           searchedProducts.map((product) => {
110
 
110
 
121
                     alignItems: "center",
121
                     alignItems: "center",
122
                     py: 2,
122
                     py: 2,
123
                     px: 2,
123
                     px: 2,
124
-                    width: "100%",
124
+                    width: "98%",
125
                     cursor: "pointer",
125
                     cursor: "pointer",
126
                     backgroundColor: "rgba(255,255,255,0.2)",
126
                     backgroundColor: "rgba(255,255,255,0.2)",
127
                     boxShadow: "none",
127
                     boxShadow: "none",

Loading…
Cancel
Save