浏览代码

don't allow x scoll on product search

master
azri 7 个月前
父节点
当前提交
47f5b8eb49
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/components/SearchProduct/SearchProduct.jsx

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

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",

正在加载...
取消
保存