chore: change preheat error log width (#524)

Signed-off-by: zhaoxinxin <1186037180@qq.com>
This commit is contained in:
Zhaoxinxin 2025-05-19 10:07:32 +08:00 committed by GitHub
parent 6a05d43483
commit 1c704b8b98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -111,7 +111,7 @@ describe('Executions', () => {
// Click the show error log button.
cy.get('#status > .MuiButtonBase-root').click();
cy.get('.css-sp3me4 > .MuiTypography-h6').should('have.text', 'Error log');
cy.get('#error-log').should('have.text', 'Error log');
cy.get('#panel1d-header').click();
// Check error log.

View File

@ -436,7 +436,7 @@ export default function ShowPreheat() {
<Box id="scheduler-lusters-id" className={styles.schedulerClustersID}>
{preheat?.scheduler_clusters?.map((item, index) => {
return (
<Typography key={index} variant="body1" component="div" fontFamily="mabry-bold" ml="0.5rem">
<Typography key={index} variant="body1" component="div" fontFamily="mabry-bold" mr="0.7rem">
{isLoading ? <Skeleton data-testid="preheat-isloading" sx={{ width: '4rem' }} /> : item.id || '-'}
</Typography>
);
@ -473,7 +473,7 @@ export default function ShowPreheat() {
</Box>
</Card>
<Drawer anchor="right" open={errorLog} onClose={handleClose}>
<Box role="presentation" sx={{ width: '28rem' }}>
<Box role="presentation" sx={{ width: '25rem' }}>
<Box sx={{ height: '100vh', backgroundColor: '#24292f' }}>
<Typography variant="h6" fontFamily="mabry-bold" sx={{ p: '1rem', color: '#fff' }}>
Error log

View File

@ -187,8 +187,8 @@ export default function ShowExecutions() {
</Alert>
</Snackbar>
<Drawer anchor="right" open={errorLog} onClose={handleClose}>
<Box role="presentation" sx={{ width: '28rem', height: '100vh', backgroundColor: '#24292f' }}>
<Typography variant="h6" fontFamily="mabry-bold" sx={{ p: '1rem', color: '#d0d7de' }}>
<Box role="presentation" sx={{ width: '25rem', height: '100vh', backgroundColor: '#24292f' }}>
<Typography id="error-log" variant="h6" fontFamily="mabry-bold" sx={{ p: '1rem', color: '#d0d7de' }}>
Error log
</Typography>
<Divider sx={{ backgroundColor: '#6c6e6f' }} />
@ -455,7 +455,7 @@ export default function ShowExecutions() {
) : (
executions?.scheduler_clusters?.map((item: any, index: number) => {
return (
<Typography key={index} variant="body2" component="div" fontFamily="mabry-bold" ml="0.5rem">
<Typography key={index} variant="body2" component="div" fontFamily="mabry-bold" mr="0.7rem">
{item.id || '-'}
</Typography>
);