Skip to content

Commit 901da93

Browse files
authored
setting fixed width for columns that are fixed. wid and name are dynamic. (#246)
1 parent 46077a8 commit 901da93

File tree

1 file changed

+60
-33
lines changed

1 file changed

+60
-33
lines changed

client/components/workflow-grid.vue

Lines changed: 60 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,18 @@ export default {
9898
</template>
9999

100100
<style lang="stylus">
101-
@require "../styles/definitions.styl"
101+
@require "../styles/definitions.styl";
102102
103-
paged-grid()
103+
paged-grid();
104104
105-
.workflow-grid
106-
height: calc(100vh - 203px)
105+
.workflow-grid {
106+
height: calc(100vh - 203px);
107107
108-
&.loading.has-results
109-
&::after
110-
content none
108+
&.loading.has-results::after {
109+
content: none;
110+
}
111111
112-
.row-header
112+
.row-header {
113113
display: flex;
114114
position: relative;
115115
padding: 0 1rem;
@@ -121,44 +121,71 @@ paged-grid()
121121
font-weight: 500;
122122
text-transform: uppercase;
123123
124-
box-shadow 0px 2px 2px rgba(0,0,0,0.2)
124+
box-shadow: 0px 2px 2px rgba(0,0,0,0.2);
125125
width: calc(100% - 10px);
126+
}
126127
127-
.row
128+
.row {
128129
height: 56px;
129130
padding: 0 1rem;
130131
display: flex;
131132
flex-direction: row;
132133
justify-content: start;
133134
align-items: stretch;
134135
line-height: 1.2rem;
135-
&.odd
136+
137+
&.odd {
136138
background-color: uber-white-10;
137-
.col
138-
&.col-status
139-
text-transform: capitalize;
139+
}
140+
141+
.col.col-status {
142+
text-transform: capitalize;
143+
}
144+
}
140145
141-
.col
146+
147+
.col {
142148
align-self: center;
143149
flex-basis: auto;
144150
padding: 0.5rem;
145151
146-
&.col-id
147-
flex-basis: 400px;
148-
&.col-link
149-
flex-basis: 400px;
150-
&.col-name
151-
flex-basis: 300px;
152-
&.col-status
153-
flex-basis: 150px;
154-
&.completed
155-
color uber-green
156-
&.failed
157-
color uber-orange
158-
&.running
159-
color uber-blue-120
160-
&.col-start
161-
flex-basis: 200px;
162-
&.col-end
163-
flex-basis: 200px;
152+
&.col-id {
153+
flex: 1;
154+
word-break: break-all;
155+
}
156+
157+
&.col-link {
158+
width: 300px;
159+
}
160+
161+
&.col-name {
162+
flex: 1;
163+
word-break: break-all;
164+
}
165+
166+
&.col-status {
167+
width: 150px;
168+
169+
&.completed {
170+
color: uber-green;
171+
}
172+
173+
&.failed {
174+
color: uber-orange;
175+
}
176+
177+
&.running {
178+
color: uber-blue-120;
179+
}
180+
}
181+
182+
&.col-start {
183+
width: 170px;
184+
}
185+
186+
&.col-end {
187+
width: 170px;
188+
}
189+
}
190+
}
164191
</style>

0 commit comments

Comments
 (0)