Browse Source

change product desc font size

master
azri 1 week ago
parent
commit
c34d03674e

+ 15
- 3
src/components/ProductList/ProductList.jsx View File

206
             </Button>}
206
             </Button>}
207
 
207
 
208
             <Box sx={{ pb: 1, pt: 1, width: "90%" }}>
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
                 {collection_name}
214
                 {collection_name}
211
               </Typography>
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
                 {title}
221
                 {title}
214
               </Typography>
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
                 {`${minPriceCurrency} ${parseFloat(minPrice).toFixed(2)}`}
228
                 {`${minPriceCurrency} ${parseFloat(minPrice).toFixed(2)}`}
217
               </Typography>
229
               </Typography>
218
               <Typography variant="body2" sx={{ mt: 2 }}>
230
               <Typography variant="body2" sx={{ mt: 2 }}>

+ 37
- 19
src/components/ProductSelected/ProductSelected.jsx View File

22
     if (products.length > 0) {
22
     if (products.length > 0) {
23
 
23
 
24
       let selectedProducts = products.filter(({ selected }) => selected) || []
24
       let selectedProducts = products.filter(({ selected }) => selected) || []
25
-      
25
+
26
       //sort
26
       //sort
27
       selectedProducts = selectedProducts.sort((a, b) => new Date(b.createdAt) - new Date(a.createdAt));
27
       selectedProducts = selectedProducts.sort((a, b) => new Date(b.createdAt) - new Date(a.createdAt));
28
       setFilterProducts(selectedProducts)
28
       setFilterProducts(selectedProducts)
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
                   lg: 20
83
                   lg: 20
84
-                }, 
84
+                },
85
                 left: {
85
                 left: {
86
-                  xs:0,
87
-                  sm:0,
88
-                  md:10,
86
+                  xs: 0,
87
+                  sm: 0,
88
+                  md: 10,
89
                   lg: 20
89
                   lg: 20
90
-                }, 
90
+                },
91
                 boxShadow: 0,
91
                 boxShadow: 0,
92
                 fontSize: 10
92
                 fontSize: 10
93
-              }} 
93
+              }}
94
               variant="contained"
94
               variant="contained"
95
             >
95
             >
96
               NEW
96
               NEW
97
             </Button>
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
                 {collection_name}
107
                 {collection_name}
102
               </Typography>
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
                 {title}
116
                 {title}
105
               </Typography>
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
                 {`${minPriceCurrency} ${parseFloat(minPrice).toFixed(2)}`}
125
                 {`${minPriceCurrency} ${parseFloat(minPrice).toFixed(2)}`}
108
               </Typography>
126
               </Typography>
109
-              <Typography variant="body1" sx={{ mt: 2 }}>
127
+              <Typography variant="body2" sx={{ mt: 2 }}>
110
                 {extra_desc}
128
                 {extra_desc}
111
               </Typography>
129
               </Typography>
112
             </Box>
130
             </Box>

Loading…
Cancel
Save