ソースを参照

change product desc font size

master
azri 1週間前
コミット
c34d03674e
2個のファイルの変更52行の追加22行の削除
  1. 15
    3
      src/components/ProductList/ProductList.jsx
  2. 37
    19
      src/components/ProductSelected/ProductSelected.jsx

+ 15
- 3
src/components/ProductList/ProductList.jsx ファイルの表示

@@ -206,13 +206,25 @@ const ProductList = ({ size = 99999 }) => {
206 206
             </Button>}
207 207
 
208 208
             <Box sx={{ pb: 1, pt: 1, width: "90%" }}>
209
-              <Typography variant="body2" sx={{ fontWeight: "400" }}>
209
+              <Typography variant="body2" sx={{ fontWeight: "400",fontSize:{
210
+                xs:"0.875rem",
211
+                sm:"0.875rem",
212
+                md:"1rem",
213
+              } }}>
210 214
                 {collection_name}
211 215
               </Typography>
212
-              <Typography variant="body2" sx={{ fontWeight: "bolder"}}>
216
+              <Typography variant="body2" sx={{ fontWeight: "bolder", fontSize:{
217
+                xs:"0.875rem",
218
+                sm:"0.875rem",
219
+                md:"1rem",
220
+              }}}>
213 221
                 {title}
214 222
               </Typography>
215
-              <Typography variant="body2" sx={{ fontWeight: "400" }}>
223
+              <Typography variant="body2" sx={{ fontWeight: "400", fontSize:{
224
+                xs:"0.875rem",
225
+                sm:"0.875rem",
226
+                md:"1rem",
227
+              } }}>
216 228
                 {`${minPriceCurrency} ${parseFloat(minPrice).toFixed(2)}`}
217 229
               </Typography>
218 230
               <Typography variant="body2" sx={{ mt: 2 }}>

+ 37
- 19
src/components/ProductSelected/ProductSelected.jsx ファイルの表示

@@ -22,7 +22,7 @@ const ProductSelected = () => {
22 22
     if (products.length > 0) {
23 23
 
24 24
       let selectedProducts = products.filter(({ selected }) => selected) || []
25
-      
25
+
26 26
       //sort
27 27
       selectedProducts = selectedProducts.sort((a, b) => new Date(b.createdAt) - new Date(a.createdAt));
28 28
       setFilterProducts(selectedProducts)
@@ -73,40 +73,58 @@ const ProductSelected = () => {
73 73
               }}
74 74
             />
75 75
 
76
-            <Button 
77
-              sx={{ 
78
-                position: "absolute", 
79
-                top:{
80
-                  xs:0,
81
-                  sm:0,
82
-                  md:10,
76
+            <Button
77
+              sx={{
78
+                position: "absolute",
79
+                top: {
80
+                  xs: 0,
81
+                  sm: 0,
82
+                  md: 10,
83 83
                   lg: 20
84
-                }, 
84
+                },
85 85
                 left: {
86
-                  xs:0,
87
-                  sm:0,
88
-                  md:10,
86
+                  xs: 0,
87
+                  sm: 0,
88
+                  md: 10,
89 89
                   lg: 20
90
-                }, 
90
+                },
91 91
                 boxShadow: 0,
92 92
                 fontSize: 10
93
-              }} 
93
+              }}
94 94
               variant="contained"
95 95
             >
96 96
               NEW
97 97
             </Button>
98 98
 
99
-            <Box sx={{ pt: 3,  width: "80%" }}>
100
-              <Typography variant="body1" sx={{ fontWeight: "400", mb: 1 }}>
99
+            <Box sx={{ pb: 1, pt: 1, width: "90%" }}>
100
+              <Typography variant="body2" sx={{
101
+                fontWeight: "400", fontSize: {
102
+                  xs: "0.875rem",
103
+                  sm: "0.875rem",
104
+                  md: "1rem",
105
+                }
106
+              }}>
101 107
                 {collection_name}
102 108
               </Typography>
103
-              <Typography variant="h6" sx={{ fontWeight: "bolder", mb: 1 }}>
109
+              <Typography variant="body2" sx={{
110
+                fontWeight: "bolder", fontSize: {
111
+                  xs: "0.875rem",
112
+                  sm: "0.875rem",
113
+                  md: "1rem",
114
+                }
115
+              }}>
104 116
                 {title}
105 117
               </Typography>
106
-              <Typography variant="body1" sx={{ fontWeight: "400" }}>
118
+              <Typography variant="body2" sx={{
119
+                fontWeight: "400", fontSize: {
120
+                  xs: "0.875rem",
121
+                  sm: "0.875rem",
122
+                  md: "1rem",
123
+                }
124
+              }}>
107 125
                 {`${minPriceCurrency} ${parseFloat(minPrice).toFixed(2)}`}
108 126
               </Typography>
109
-              <Typography variant="body1" sx={{ mt: 2 }}>
127
+              <Typography variant="body2" sx={{ mt: 2 }}>
110 128
                 {extra_desc}
111 129
               </Typography>
112 130
             </Box>

読み込み中…
キャンセル
保存