Skip to content

Commit

Permalink
Mark Python output as out of date, too.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Jun 14, 2024
1 parent bdef6fe commit 76a1306
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,17 @@ function AppContent() {
tabsWithPanels.push(tabAndPanel({
key: 'python-output',
title: 'Python Output',
titleStyle: productsOutOfDate ? { textDecoration: 'line-through' } : {},
content:
<Box
className='terminal-output'
sx={{ paddingX: 2, paddingY: 1 }}
>{TerminalOutput('python-output', pythonOutput)}</Box>
<Box sx={{ display: 'flex', flexDirection: 'column', height: '100%' }}>
{productsOutOfDate && <Alert variant='soft' color='warning' sx={{ borderRadius: 0 }}>
The Python output is out of date. Run the program again to refresh it.
</Alert>}
<Box
className='terminal-output'
sx={{ flexGrow: 1, paddingX: 2, paddingY: 1 }}
>{TerminalOutput('python-output', pythonOutput)}</Box>
</Box>
}));

useEffect(() => {
Expand Down

0 comments on commit 76a1306

Please sign in to comment.