1
1
<template >
2
- <div class =" columns is-multiline " >
2
+ <div class =" grid-container " >
3
3
<template v-for =" (pipeline , index ) in pipelines " >
4
- <div class = " column is-one-third " :key =" index" v-if =" !pipeline.p.notvalid" >
5
- <div class =" pipeline-box notification content-article" >
4
+ <div :key =" index" v-if =" !pipeline.p.notvalid" >
5
+ <div class =" notification pipeline-box content-article" >
6
6
<div class =" status-display-success" v-if =" pipeline.r.status === 'success'" ></div >
7
7
<div class =" status-display-fail" v-else-if =" pipeline.r.status === 'failed'" ></div >
8
8
<div class =" status-display-unknown" v-else ></div >
14
14
<div >
15
15
<span class =" subtitle" >{{ pipeline.p.name }}</span >
16
16
</div >
17
- </router-link >
17
+ </router-link >
18
18
<hr class =" pipeline-hr" >
19
- <div class = " pipeline-info " >
19
+ <div >
20
20
<i class =" fa fa-hourglass" ></i >
21
21
<span style =" color : #b1adad ;" >
22
22
Duration:
38
38
unknown
39
39
</span ><br />
40
40
<div class =" pipelinegrid-footer" >
41
- <a class =" button is-primary" @click =" checkPipelineArgs(pipeline.p)" style =" width : 250 px ;" >
41
+ <a class =" button is-primary" @click =" checkPipelineArgs(pipeline.p)" style =" width : 100 % ;" >
42
42
<span class =" icon" >
43
43
<i class =" fa fa-play-circle" ></i >
44
44
</span >
52
52
</template >
53
53
<div v-if =" pipelines.length == 0" class =" no-pipelines-div" >
54
54
<span class =" no-pipelines-text" >No pipelines are available. Please create a pipeline first.</span >
55
- </div >
55
+ </div >
56
56
</div >
57
57
</template >
58
58
@@ -163,7 +163,14 @@ export default {
163
163
164
164
<style lang="scss">
165
165
166
- .no-pipelines-div {
166
+ .grid-container {
167
+ display : grid ;
168
+ grid-template-columns : repeat (auto-fill , 400px );
169
+ grid-row-gap : 10px ;
170
+ grid-column-gap : 10px ;
171
+ }
172
+
173
+ .no-pipelines-div {
167
174
width : 100% ;
168
175
text-align : center ;
169
176
margin-top : 50px ;
@@ -188,7 +195,7 @@ export default {
188
195
189
196
.status-display-success {
190
197
@include status-display ();
191
- background-color : rgb (49 , 196 , 49 );
198
+ background-color : rgb (49 , 196 , 49 );
192
199
}
193
200
194
201
.status-display-folder {
@@ -207,11 +214,11 @@ export default {
207
214
}
208
215
209
216
.pipeline-box {
210
- width : 377 px ;
217
+ padding-right : 20 px ;
211
218
}
212
219
213
220
.outer-box {
214
- padding-left : 40px ;
221
+ padding-left : 40px ;
215
222
min-height : 170px ;
216
223
width : 100% ;
217
224
}
@@ -263,10 +270,6 @@ export default {
263
270
}
264
271
265
272
.pipeline-hr {
266
- position : absolute ;
267
- width : 325px ;
268
- margin-left : -13px ;
269
- margin-top : 18px ;
270
273
background-image : linear-gradient (
271
274
to right ,
272
275
black 33% ,
@@ -277,13 +280,7 @@ export default {
277
280
background-repeat : repeat-x ;
278
281
}
279
282
280
- .pipeline-info {
281
- padding-top : 33px ;
282
- }
283
-
284
283
.pipelinegrid-footer {
285
- margin : auto ;
286
- width : 82% ;
287
284
padding-top : 20px ;
288
285
}
289
286
0 commit comments