# HG changeset patch # User Bernhard Reiter # Date 1567688526 -7200 # Node ID 2f212f520a04fb0dbf4e2924d802b09d59c1239c # Parent 8ac59c8183e8c9f8e58873e8739956792c15b5ea client: (minor) beautify code format diff -r 8ac59c8183e8 -r 2f212f520a04 client/src/components/fairway/AvailableFairwayDepth.vue --- a/client/src/components/fairway/AvailableFairwayDepth.vue Thu Sep 05 14:50:05 2019 +0200 +++ b/client/src/components/fairway/AvailableFairwayDepth.vue Thu Sep 05 15:02:06 2019 +0200 @@ -503,11 +503,12 @@ .filter(d => hoursInDays(d.height) > 0) .insert("text") .attr("y", d => { - return ( 2 * yScale(0) - - yScale(hoursInDays(d.translateY)) - + this.paddingTop - + (yScale(0) - yScale(hoursInDays(d.height))) - + (yScale(0) - yScale(1.9)) //instead o alignment-baseline hanging + return ( + 2 * yScale(0) - + yScale(hoursInDays(d.translateY)) + + this.paddingTop + + (yScale(0) - yScale(hoursInDays(d.height))) + + (yScale(0) - yScale(1.9)) //instead o alignment-baseline hanging ); }) .attr("x", widthPerItem / 2) @@ -560,7 +561,7 @@ .filter(d => hoursInDays(d.ldc) > 0) .append("text") .attr("y", yScale(0.5)) // some distance from the bar - .attr("x", spaceBetween / 2) + .attr("x", spaceBetween / 2) .text(d => hoursInDays(d.ldc)) .attr("text-anchor", "left") .attr("font-size", "8")