diff --git a/src/components/CanvasAnnotations.js b/src/components/CanvasAnnotations.js index ba5f5cb2689892ea4bef9e0d669dfe766a6c4671..8b4993c3e28145bf4ed63fcd53e918cdc71b64b3 100644 --- a/src/components/CanvasAnnotations.js +++ b/src/components/CanvasAnnotations.js @@ -95,14 +95,17 @@ export class CanvasAnnotations extends Component { onMouseEnter={() => this.handleAnnotationHover(annotation)} onMouseLeave={this.handleAnnotationBlur} > - <ListItemText primaryTypographyProps={{ variant: 'body2' }}> - <SanitizedHtml ruleSet={htmlSanitizationRuleSet} htmlString={annotation.content} /> - <div> - {annotation.tags.map((tag) => ( - <Chip size="small" variant="outlined" label={tag} id={tag} key={tag.toString()} /> - ))} - </div> - </ListItemText> + <ListItemText + primaryTypographyProps={{ variant: 'body2' }} + primary={ + <SanitizedHtml ruleSet={htmlSanitizationRuleSet} htmlString={annotation.content} /> + } + secondary={ + annotation.tags.map((tag) => ( + <Chip component="span" size="small" variant="outlined" label={tag} id={tag} key={tag.toString()} /> + )) + } + /> </MenuItem> </ScrollTo> ))}