feat: rm reset button for output preview
This commit is contained in:
@@ -179,34 +179,12 @@ export const InterpretationLog: React.FC<InterpretationLogProps> = ({ isOpen, se
|
|||||||
>
|
>
|
||||||
{
|
{
|
||||||
binaryData ? (
|
binaryData ? (
|
||||||
<>
|
<div style={{ marginBottom: '20px' }}>
|
||||||
<div style={{ marginBottom: '20px' }}>
|
<Typography variant="body1" gutterBottom>
|
||||||
<Typography variant="body1" gutterBottom>
|
{t('interpretation_log.titles.screenshot')}
|
||||||
{t('interpretation_log.titles.screenshot')}
|
</Typography>
|
||||||
</Typography>
|
<img src={binaryData} alt={t('interpretation_log.titles.screenshot')} style={{ maxWidth: '100%' }} />
|
||||||
<img src={binaryData} alt={t('interpretation_log.titles.screenshot')} style={{ maxWidth: '100%' }} />
|
</div>
|
||||||
</div>
|
|
||||||
<Button
|
|
||||||
variant="contained"
|
|
||||||
color="primary"
|
|
||||||
onClick={handleReset}
|
|
||||||
sx={{
|
|
||||||
position: 'absolute',
|
|
||||||
color: 'white',
|
|
||||||
bottom: '20px',
|
|
||||||
right: '20px',
|
|
||||||
backgroundColor: '#ff00c3',
|
|
||||||
overflow: 'hidden',
|
|
||||||
textAlign: 'left',
|
|
||||||
'&:hover': {
|
|
||||||
backgroundColor: '#ff00c3',
|
|
||||||
},
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Reset
|
|
||||||
{/* {t('interpretation_log.buttons.reset')} */}
|
|
||||||
</Button>
|
|
||||||
</>
|
|
||||||
) : tableData.length > 0 ? (
|
) : tableData.length > 0 ? (
|
||||||
<>
|
<>
|
||||||
<TableContainer component={Paper}>
|
<TableContainer component={Paper}>
|
||||||
@@ -232,25 +210,6 @@ export const InterpretationLog: React.FC<InterpretationLogProps> = ({ isOpen, se
|
|||||||
<span style={{ marginLeft: '15px', marginTop: '10px', fontSize: '12px' }}>
|
<span style={{ marginLeft: '15px', marginTop: '10px', fontSize: '12px' }}>
|
||||||
{t('interpretation_log.messages.additional_rows')}
|
{t('interpretation_log.messages.additional_rows')}
|
||||||
</span>
|
</span>
|
||||||
<Button
|
|
||||||
variant="contained"
|
|
||||||
color="primary"
|
|
||||||
onClick={handleReset}
|
|
||||||
sx={{
|
|
||||||
position: 'absolute',
|
|
||||||
color: 'white',
|
|
||||||
bottom: '20px',
|
|
||||||
right: '20px',
|
|
||||||
backgroundColor: '#ff00c3',
|
|
||||||
overflow: 'hidden',
|
|
||||||
textAlign: 'left',
|
|
||||||
'&:hover': {
|
|
||||||
backgroundColor: '#ff00c3',
|
|
||||||
},
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{t('interpretation_buttons.buttons.reset')}
|
|
||||||
</Button>
|
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<Grid container justifyContent="center" alignItems="center" style={{ height: '100%' }}>
|
<Grid container justifyContent="center" alignItems="center" style={{ height: '100%' }}>
|
||||||
|
|||||||
Reference in New Issue
Block a user