瀏覽代碼

don't allow x scoll on product search

master
azri 4 週之前
父節點
當前提交
47f5b8eb49
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/components/SearchProduct/SearchProduct.jsx

+ 2
- 2
src/components/SearchProduct/SearchProduct.jsx 查看文件

@@ -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…
取消
儲存