Commit a76864cc authored by Annabel Dunstone's avatar Annabel Dunstone

Add min width and horizontally scroll pipeline graph when overflow

parent 83c1ce74
...@@ -234,16 +234,22 @@ ...@@ -234,16 +234,22 @@
.pipeline-visualization { .pipeline-visualization {
position: relative; position: relative;
width: 100%;
overflow: auto;
ul { ul {
padding: 0; padding: 0;
} }
} }
.stage-column-list {
min-width: 1220px;
}
.stage-column { .stage-column {
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
margin-right: 40px; margin-right: 50px;
li { li {
list-style: none; list-style: none;
...@@ -278,9 +284,9 @@ ...@@ -278,9 +284,9 @@
content: ''; content: '';
position: absolute; position: absolute;
top: 50%; top: 50%;
right: -44px; right: -54px;
border-top: 2px solid $border-color; border-top: 2px solid $border-color;
width: 44px; width: 54px;
height: 1px; height: 1px;
} }
} }
...@@ -298,7 +304,7 @@ ...@@ -298,7 +304,7 @@
// Right connecting curves // Right connecting curves
&::after { &::after {
right: -21px; right: -20px;
border-right: 2px solid $border-color; border-right: 2px solid $border-color;
border-radius: 0 0 50px 0; border-radius: 0 0 50px 0;
-webkit-border-radius: 0 0 50px 0; -webkit-border-radius: 0 0 50px 0;
...@@ -306,7 +312,7 @@ ...@@ -306,7 +312,7 @@
// Left connecting curves // Left connecting curves
&::before { &::before {
left: -21px; left: -20px;
border-left: 2px solid $border-color; border-left: 2px solid $border-color;
border-radius: 0 0 0 50px; border-radius: 0 0 0 50px;
-webkit-border-radius: 0 0 0 50px; -webkit-border-radius: 0 0 0 50px;
...@@ -316,9 +322,14 @@ ...@@ -316,9 +322,14 @@
// Connect second build to first build with smaller curved line // Connect second build to first build with smaller curved line
&:nth-child(2) { &:nth-child(2) {
&::after, &::before { &::after, &::before {
height: 40px; height: 45px;
top: -26px; top: -26px;
} }
&::after {
// border-left: 2px solid $border-color;
border-top-right-radius: -50px;
-webkit-border-top-right-radius: -50px;
}
} }
} }
......
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