@@ -27,12 +27,12 @@ const sx = {
2727 fontFamily : 'mono' ,
2828 fontSize : [ 3 ] ,
2929 textAlign : 'right' ,
30- mt : [ '5px ' ] ,
30+ mt : [ '6px ' ] ,
3131 } ,
3232 label : {
3333 fontFamily : 'mono' ,
3434 fontSize : [ 2 , 2 , 2 , 3 ] ,
35- mt : [ '6px' ] ,
35+ mt : [ '8px' , '8px' , '8px' , ' 6px'] ,
3636 textTransform : 'capitalize' ,
3737 } ,
3838 units : {
@@ -70,15 +70,15 @@ const MetricDesktop = ({
7070 < Box
7171 onClick = { hasDetails ? toggle : ( e ) => e . stopPropagation ( ) }
7272 sx = { {
73- cursor : hasDetails ? 'pointer' : 'inherit ' ,
73+ cursor : hasDetails ? 'pointer' : 'initial ' ,
7474 pointerEvents : 'all' ,
7575 '&:hover > #grid > #container > #expander' : {
7676 fill : 'primary' ,
7777 stroke : 'primary' ,
7878 } ,
79- pt : [ 2 ] ,
79+ pt : [ 1 ] ,
8080 pb : [ '6px' ] ,
81- pl : embed ? [ 2 , 2 , 2 ] : [ 0 , 0 , '24px' ] ,
81+ pl : embed ? [ 2 , 2 , 2 ] : [ 0 , 0 , '24px' , '38px' ] ,
8282 } }
8383 >
8484 < Grid id = 'grid' gap = { [ '16px' ] } columns = { [ '55px 95px 1fr 15px 30px' ] } >
@@ -112,8 +112,8 @@ const MetricDesktop = ({
112112 scale = { scales [ 'negativity' ] }
113113 > </ Bar >
114114 ) }
115- { metric . name == 'cost ' && (
116- < Bar tag = { tag } data = { metric . value } scale = { scales [ 'cost ' ] } > </ Bar >
115+ { metric . name == 'price ' && (
116+ < Bar tag = { tag } data = { metric . value } scale = { scales [ 'price ' ] } > </ Bar >
117117 ) }
118118 { metric . name == 'additionality' && (
119119 < Box sx = { { mt : '13px' } } >
@@ -126,7 +126,7 @@ const MetricDesktop = ({
126126 </ Box >
127127 ) }
128128 { metric . name == 'rating' && (
129- < Box sx = { { mb : '6px ' } } >
129+ < Box sx = { { width : 'calc(100% + 40px)' , ml : '-40px' , mb : '0px ' } } >
130130 < Rating
131131 sx = { { color : theme . tags [ tag ] } }
132132 value = { metric . value }
@@ -161,7 +161,8 @@ const MetricDesktop = ({
161161 ) }
162162 </ Text >
163163 < Text sx = { { mt : [ '3px' ] } } >
164- { metric . rating === 1 && (
164+ { ( metric . rating === 1 ||
165+ ( metric . name === 'additionality' && metric . value === 2 ) ) && (
165166 < Check sx = { { width : '28px' , color : theme . tags [ tag ] } } />
166167 ) }
167168 { metric . rating === 0 && < Box /> }
@@ -185,7 +186,7 @@ const MetricDesktop = ({
185186 ml = { '0px' }
186187 sx = { {
187188 cursor : 'text' ,
188- pl : embed ? [ '190px' ] : [ '182px' , '182px' , '206px' ] ,
189+ pl : embed ? [ '190px' ] : [ '182px' , '182px' , '206px' , '220px' ] ,
189190 pr : [ '30px' ] ,
190191 mt : [ '-4px' ] ,
191192 pb : [ '10px' ] ,
@@ -202,7 +203,7 @@ const MetricDesktop = ({
202203 sx = { {
203204 pb : [ 1 ] ,
204205 cursor : 'text' ,
205- pl : embed ? [ 2 , 2 , 2 ] : [ 0 , 0 , '24px' ] ,
206+ pl : embed ? [ 2 , 2 , 2 ] : [ 0 , 0 , '24px' , '38px' ] ,
206207 } }
207208 onClick = { ( e ) => e . stopPropagation ( ) }
208209 >
@@ -272,7 +273,7 @@ const MetricDesktop = ({
272273 </ AnimateHeight >
273274 < Divider
274275 sx = { {
275- ml : embed ? [ 0 , 0 , 0 ] : [ 0 , 0 , '24px' ] ,
276+ ml : embed ? [ 0 , 0 , 0 ] : [ 0 , 0 , '24px' , '38px' ] ,
276277 mr : [ 0 ] ,
277278 mt : [ 0 ] ,
278279 mb : [ 0 ] ,
0 commit comments