Skip to content

Commit bdbd816

Browse files
authored
[BUGFIX] Logstable: consistent No Data style for plugins (perses#528)
Signed-off-by: Mahmoud Shahrokni <seyedmahmoud.shahrokni@amadeus.com>
1 parent 080de96 commit bdbd816

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

logstable/src/LogsTableComponent.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// limitations under the License.
1313

1414
import { ReactElement } from 'react';
15-
import { Typography } from '@mui/material';
15+
import { Box, Typography } from '@mui/material';
1616
import { LogsTableProps } from './model';
1717
import { LogsList } from './components/LogsList';
1818

@@ -21,15 +21,16 @@ export function LogsTableComponent(props: LogsTableProps): ReactElement | null {
2121

2222
if (queryResults[0]?.data.logs === undefined) {
2323
return (
24-
<Typography
25-
variant="h3"
24+
<Box
2625
sx={{
27-
textAlign: 'center',
28-
marginTop: 4,
26+
display: 'flex',
27+
justifyContent: 'center',
28+
alignItems: 'center',
29+
height: '100%',
2930
}}
3031
>
31-
No logs to display
32-
</Typography>
32+
<Typography>No logs to display</Typography>
33+
</Box>
3334
);
3435
}
3536
const logs = queryResults[0]?.data.logs.entries;

0 commit comments

Comments
 (0)