Commit 3642f6f0 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Reduce the size of the deploy flag when there's no tag available

parent d377aa54
...@@ -64,6 +64,14 @@ ...@@ -64,6 +64,14 @@
} }
return xPosition; return xPosition;
}, },
svgContainerHeight(tag) {
let svgHeight = 80;
if (!tag) {
svgHeight -= 20;
}
return svgHeight;
},
}, },
}; };
</script> </script>
...@@ -97,14 +105,14 @@ ...@@ -97,14 +105,14 @@
:x="positionFlag(deployment)" :x="positionFlag(deployment)"
y="0" y="0"
width="134" width="134"
height="80"> :height="svgContainerHeight(deployment.tag)">
<rect <rect
class="rect-text-metric deploy-info-rect rect-metric" class="rect-text-metric deploy-info-rect rect-metric"
x="1" x="1"
y="1" y="1"
rx="2" rx="2"
width="132" width="132"
height="78"> :height="svgContainerHeight(deployment.tag) - 2">
</rect> </rect>
<text <text
class="deploy-info-text text-metric-bold" class="deploy-info-text text-metric-bold"
...@@ -136,7 +144,7 @@ ...@@ -136,7 +144,7 @@
name="commit" name="commit"
:width="12" :width="12"
:height="12" :height="12"
:y="5"> :y="3">
</icon> </icon>
<a :xlink:href="deployment.commitUrl"> <a :xlink:href="deployment.commitUrl">
<text <text
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment