Skip to content

Commit e9d4be2

Browse files
committedApr 6, 2023
fix: improvements in dashboard for narrowing of window
ink v3 doesn't render well when the window is narrowed, especially for boxes with borders. this removes the border from the header, and tightens up a few horizontal margins.
1 parent 4502eae commit e9d4be2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎plugins/plugin-codeflare-dashboard/src/components/Dashboard/Grid.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default class Grid extends React.PureComponent<GridProps> {
138138
{AA.filter(Boolean).map((_, cidx) => (
139139
/* legend entry (i.e. legend column) */
140140
<Box key={_.state} {...outerBoxProps}>
141-
<Box {...innerBoxProps} marginLeft={1}>
141+
<Box {...innerBoxProps}>
142142
{/* legend entry label */}
143143
<Box>
144144
<Text {..._.style} bold>

‎plugins/plugin-codeflare-dashboard/src/components/Dashboard/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export default class Dashboard extends React.PureComponent<Props, State> {
128128

129129
private header() {
130130
return (
131-
<Box borderStyle="singleDouble" flexDirection="column">
131+
<Box flexDirection="column">
132132
<Box>
133133
<Text>
134134
<Text color="blue" bold>
@@ -229,7 +229,7 @@ export default class Dashboard extends React.PureComponent<Props, State> {
229229
return this.gridRows().map((row, ridx) => (
230230
<Box key={ridx} justifyContent="space-around">
231231
{row.map(({ grid, widx }) => (
232-
<Box key={grid.title} marginLeft={2}>
232+
<Box key={grid.title} marginLeft={1}>
233233
<Grid
234234
key={grid.title}
235235
title={grid.title}

0 commit comments

Comments
 (0)
Please sign in to comment.