From 3956139233904c4666e611a2b3aa09143cb67b57 Mon Sep 17 00:00:00 2001
From: Antoine <antoine.roy@tetras-libre.fr>
Date: Wed, 10 Jan 2024 10:32:22 +0100
Subject: [PATCH] fix-error

---
 src/components/CanvasAnnotations.js | 35 ++++++++---------------------
 1 file changed, 9 insertions(+), 26 deletions(-)

diff --git a/src/components/CanvasAnnotations.js b/src/components/CanvasAnnotations.js
index c0867e981..f8ad3edb4 100644
--- a/src/components/CanvasAnnotations.js
+++ b/src/components/CanvasAnnotations.js
@@ -166,34 +166,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}
-                            sx={theme => ({
-                              backgroundColor: theme.palette.background.paper,
-                              marginRight: theme.spacing(0.5),
-                              marginTop: theme.spacing(1),
-                            })}
-                            key={tag.toString()}
-                          />
+                  <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()} />
                         ))
                       }
-                      <AnnotationManifestsAccordion
-                        annotation={annotation}
-                        t={t}
-                      />
-                    </div>
-                  </ListItemText>
+                  />
                 </MenuItem>
               </ScrollTo>
             ))
-- 
GitLab