Skip to content
Snippets Groups Projects
Commit 1d341661 authored by Anthony's avatar Anthony
Browse files

Improve searching, changing mirador comportent

parent ec328a33
No related branches found
No related tags found
1 merge request!15Add research field and undo research manifest in annotation content
......@@ -88,6 +88,8 @@ export class CanvasAnnotations extends Component {
annotations = filterAnnotation(annotations, inputSearch);
}
const annotationCount = annotations.length;
return (
<>
<div className={classes.form}>
......@@ -163,6 +165,9 @@ export class CanvasAnnotations extends Component {
</MenuItem>
)}
</MenuList>
<div className={classes.footerAnnotationPanel}>
<Typography component="p" variant="subtitle2">{t('showingNumAnnotations', { count: annotationCount, number: annotationCount })}</Typography>
</div>
</>
);
}
......
......@@ -34,10 +34,6 @@ export class WindowSideBarAnnotationsPanel extends Component {
otherRef={this.containerRef}
titleControls={<AnnotationSettings windowId={windowId} />}
>
<div className={classes.section}>
<Typography component="p" variant="subtitle2">{t('showingNumAnnotations', { count: annotationCount, number: annotationCount })}</Typography>
</div>
{canvasIds.map((canvasId, index) => (
<CanvasAnnotations
canvasId={canvasId}
......
......@@ -73,8 +73,17 @@ const styles = theme => ({
position: 'absolute',
right: 0,
},
footerAnnotationPanel: {
background: theme.palette.background.paper,
bottom: 0,
position: 'sticky',
},
form: {
background: theme.palette.background.paper,
padding: theme.spacing(0, 1, 0, 1),
position: 'sticky',
top: 0,
zIndex: 10,
},
grow: {
flexGrow: 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment