This commit is contained in:
seb
2026-10-23 23:11:05 +02:00
parent 5dd45916b8
commit 35144c7187
3 changed files with 41 additions and 53 deletions

View File

@@ -6,7 +6,6 @@ import CircularProgress from '@mui/material/CircularProgress';
import Link from '@mui/material/Link';
import ListItemButton from '@mui/material/ListItemButton';
import Skeleton from '@mui/material/Skeleton';
import Tooltip from '@mui/material/Tooltip';
import Typography from '@mui/material/Typography';
import ViewModuleIcon from '@mui/icons-material/ViewModule';
import { enqueueSnackbar } from 'notistack';
@@ -414,15 +413,13 @@ class ArticleHistoryRow extends PureComponent {
}}
>
{this.renderSkelehashThumb(meta)}
<Tooltip title={item.text || ''} placement="top-start" enterDelay={700}>
<Typography
variant="body2"
component="div"
sx={{ ...ellipsisSx, display: 'inline', width: '100%', fontSize: '0.8125rem' }}
>
{this.renderEntrySpans(item.text, meta)}
</Typography>
</Tooltip>
<Typography
variant="body2"
component="div"
sx={{ ...ellipsisSx, display: 'inline', width: '100%', fontSize: '0.8125rem' }}
>
{this.renderEntrySpans(item.text, meta)}
</Typography>
</Box>
</ListItemButton>
);
@@ -617,35 +614,31 @@ class ArticleHistorySearchField extends PureComponent {
</Box>
{import.meta.env.DEV && (
<Tooltip
title={`Chunk-Cache-Monitor öffnen (Alt+Shift+C) — ${this.state.lruChunksCount || 0}/${this.state.maxLruChunks || 50} Chunks im RAM über ${this.state.filterCachesCount || 1} Filter`}
>
<Chip
size="small"
icon={<ViewModuleIcon sx={{ fontSize: 16 }} />}
label={
this.state.lruChunksCount > 0
? `Chunk-Cache (${this.state.lruChunksCount}/${this.state.maxLruChunks || 50})`
: 'Chunk-Cache'
}
onClick={() =>
window.dispatchEvent(
new CustomEvent('dash:toggle-chunk-monitor', {
detail: { target: automat.name },
}),
)
}
sx={{
cursor: 'pointer',
height: 28,
fontWeight: 600,
fontSize: '0.75rem',
bgcolor: 'background.paper',
boxShadow: 1,
'&:hover': { bgcolor: 'action.hover' },
}}
/>
</Tooltip>
<Chip
size="small"
icon={<ViewModuleIcon sx={{ fontSize: 16 }} />}
label={
this.state.lruChunksCount > 0
? `Chunk-Cache (${this.state.lruChunksCount}/${this.state.maxLruChunks || 50})`
: 'Chunk-Cache'
}
onClick={() =>
window.dispatchEvent(
new CustomEvent('dash:toggle-chunk-monitor', {
detail: { target: automat.name },
}),
)
}
sx={{
cursor: 'pointer',
height: 28,
fontWeight: 600,
fontSize: '0.75rem',
bgcolor: 'background.paper',
boxShadow: 1,
'&:hover': { bgcolor: 'action.hover' },
}}
/>
)}
</Box>
</Box>