File tree Expand file tree Collapse file tree 1 file changed +35
-8
lines changed Expand file tree Collapse file tree 1 file changed +35
-8
lines changed Original file line number Diff line number Diff line change 236
236
border-radius : 6px ;
237
237
}
238
238
239
+ .summary-container {
240
+ display : flex;
241
+ flex-direction : column;
242
+ margin-bottom : 10px ;
243
+ }
239
244
.summary {
240
245
display : flex;
241
- justify-content : center;
242
- align-items : center;
243
- width : 20% ;
244
246
}
245
- .summary-wide {
246
- width : 35% ;
247
+ .summary-values {
248
+ display : flex;
249
+ flex-direction : column;
250
+ }
251
+ @media (min-width : 650px ) {
252
+ .summary-container {
253
+ flex-direction : row;
254
+ margin-bottom : 0 ;
255
+ align-items : center;
256
+ }
257
+ .summary-container > span {
258
+ text-align : right;
259
+ width : 20% ;
260
+ }
261
+ .summary-values {
262
+ width : 100% ;
263
+ flex-direction : row;
264
+ justify-content : flex-end;
265
+ align-items : center;
266
+ }
267
+ .summary {
268
+ width : 15% ;
269
+ align-items : center;
270
+ }
271
+ .summary-wide {
272
+ width : 20% ;
273
+ }
247
274
}
248
275
</ style >
249
276
< script src ="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js "> </ script >
@@ -430,10 +457,10 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
430
457
</ span >
431
458
</ span >
432
459
</ div >
433
- < div v-for ="summaryPair in Object.entries(summary) " style =" display: flex; ">
434
- < span style ="font-weight: bold; width: 30%; margin-left: 15% ; text-transform: capitalize; "> {{
460
+ < div v-for ="summaryPair in Object.entries(summary) " class =" summary-container ">
461
+ < span style ="font-weight: bold; margin-left: 5px ; text-transform: capitalize; "> {{
435
462
summaryPair[0] }}:</ span >
436
- < div style =" display: flex; justify-content: flex-end; width: 80%; margin-right: 5%; ">
463
+ < div class =" summary-values ">
437
464
< span class ="summary summary-wide positive ">
438
465
{{summaryPair[1].regressions.toString().padStart(3, " ")}}
439
466
< svg style ="width:18px;height:18px " viewBox ="0 0 24 24 ">
You can’t perform that action at this time.
0 commit comments