Skip to content

Commit 0306c63

Browse files
committed
fix: a few more chart layout tweaks
1) slightly narrower left strip 2) inverse colors 3) revert to patternfly4 light as the default theme 4) a bit less padding in the chart tiles 5) in light themes, use a drop shadow for the chart tiles
1 parent 86808bf commit 0306c63

File tree

5 files changed

+20
-11
lines changed

5 files changed

+20
-11
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"defaultTheme": "PatternFly4 Dark"
2+
"defaultTheme": "PatternFly4 Light"
33
}

plugins/plugin-client-default/notebooks/dashboard.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ layout:
33
1:
44
position: default
55
maximized: true
6+
inverseColors: true
67
2:
78
position: default
89
maximized: true

plugins/plugin-codeflare/src/components/Chart.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ export default class BaseChart extends React.PureComponent<Props> {
7373
}
7474

7575
public static readonly padding = {
76-
bottom: BaseChart.fontSize * 3,
77-
top: BaseChart.fontSize * 5,
76+
bottom: BaseChart.fontSize * 1.5,
77+
top: BaseChart.fontSize * 4,
7878
left: BaseChart.fontSize * 4.5,
7979
right: BaseChart.fontSize * 4.5,
8080
}
@@ -252,7 +252,7 @@ export default class BaseChart extends React.PureComponent<Props> {
252252
return (
253253
<ChartLabel
254254
x={BaseChart.titlePosition.x.left}
255-
y={BaseChart.fontSize * 1.5}
255+
y={BaseChart.fontSize / 2}
256256
style={BaseChart.titleStyle()}
257257
text={chart.title}
258258
/>

plugins/plugin-codeflare/web/scss/components/Dashboard/Charts.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,9 @@
2929
@include ChartContainer {
3030
background-color: var(--color-base00);
3131
}
32+
33+
body[kui-theme-style="light"] {
34+
@include ChartContainer {
35+
filter: drop-shadow(1px 1px 2px var(--color-base02));
36+
}
37+
}

plugins/plugin-codeflare/web/scss/components/Dashboard/_index.scss

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,16 @@
3030

3131
@include TopLevelTab {
3232
@include Split(3) {
33-
@include Rows(5);
34-
@include Columns(12);
33+
@include Rows(7);
34+
@include Columns(13);
3535
grid-template-areas:
36-
"T1 T1 T1 T3 T3 T3 T3 T3 T3 T3 T3 T3"
37-
"T1 T1 T1 T3 T3 T3 T3 T3 T3 T3 T3 T3"
38-
"T1 T1 T1 T3 T3 T3 T3 T3 T3 T3 T3 T3"
39-
"T1 T1 T1 T2 T2 T2 T2 T2 T2 T2 T2 T2"
40-
"T1 T1 T1 T2 T2 T2 T2 T2 T2 T2 T2 T2";
36+
"T1 T1 T1 T3 T3 T3 T3 T3 T3 T3 T3 T3 T3"
37+
"T1 T1 T1 T3 T3 T3 T3 T3 T3 T3 T3 T3 T3"
38+
"T1 T1 T1 T3 T3 T3 T3 T3 T3 T3 T3 T3 T3"
39+
"T1 T1 T1 T2 T2 T2 T2 T2 T2 T2 T2 T2 T2"
40+
"T1 T1 T1 T2 T2 T2 T2 T2 T2 T2 T2 T2 T2"
41+
"T1 T1 T1 T2 T2 T2 T2 T2 T2 T2 T2 T2 T2"
42+
"T1 T1 T1 T2 T2 T2 T2 T2 T2 T2 T2 T2 T2";
4143
}
4244
}
4345

0 commit comments

Comments
 (0)