Skip to content

Commit bddd22d

Browse files
committed
Update
1 parent fe8e08d commit bddd22d

File tree

2 files changed

+38
-14
lines changed

2 files changed

+38
-14
lines changed

webviews/dashboardView/app.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ function Dashboard() {
135135
case '0':
136136
return 'Failed';
137137
case '1':
138-
return 'Completed';
138+
return 'Ready for review';
139+
case 'completed':
140+
return 'Ready for review';
139141
case '2':
140142
return 'In Progress';
141143
default:

webviews/dashboardView/index.css

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,34 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6+
body {
7+
min-height: 400px;
8+
}
9+
10+
html, body, app {
11+
height: 100%;
12+
min-height: 100%;
13+
}
14+
615
.dashboard-container {
7-
display: flex;
8-
flex-direction: column;
16+
display: grid;
17+
grid-template-rows: auto 1fr;
18+
grid-template-columns: 1fr 1fr;
19+
grid-template-areas:
20+
"header header"
21+
"left-column right-column";
922
height: 100vh;
10-
max-height: 100vh;
23+
max-height: calc(100vh - 32px);
1124
padding: 16px;
1225
gap: 16px;
1326
overflow: hidden;
1427
}
1528

1629
.dashboard-header {
30+
grid-area: header;
1731
display: flex;
1832
justify-content: space-between;
1933
align-items: center;
20-
margin-bottom: 16px;
2134
}
2235

2336
.dashboard-title {
@@ -40,18 +53,21 @@
4053
}
4154

4255
.dashboard-content {
43-
display: flex;
44-
flex: 1;
56+
grid-column: 1 / -1;
57+
grid-row: 2;
58+
display: grid;
59+
grid-template-columns: 1fr 1fr;
4560
gap: 16px;
4661
overflow: hidden;
62+
min-height: 0;
4763
}
4864

4965
.dashboard-column {
50-
flex: 1;
5166
display: flex;
5267
flex-direction: column;
5368
overflow: hidden;
54-
min-height: 400px;
69+
min-height: 0;
70+
min-width: 0;
5571
}
5672

5773
.column-header {
@@ -201,6 +217,8 @@
201217
}
202218

203219
.loading-indicator {
220+
grid-column: 1 / -1;
221+
grid-row: 1 / -1;
204222
display: flex;
205223
justify-content: center;
206224
align-items: center;
@@ -218,12 +236,16 @@
218236
margin: 8px 0;
219237
}
220238

221-
@media (max-width: 768px) {
222-
.dashboard-content {
223-
flex-direction: column;
239+
@media (max-width: 600px) {
240+
.dashboard-container {
241+
grid-template-columns: 1fr;
242+
grid-template-areas:
243+
"header"
244+
"left-column"
245+
"right-column";
224246
}
225247

226-
.dashboard-column {
227-
min-height: 300px;
248+
.dashboard-content {
249+
grid-template-columns: 1fr;
228250
}
229251
}

0 commit comments

Comments
 (0)