add text_rebond to NodeViewFooter & style popovers

This commit is contained in:
axolotle
2021-06-23 16:21:54 +02:00
parent 600972b8cd
commit f4d81dffcf
9 changed files with 87 additions and 37 deletions
+1 -1
View File
@@ -222,7 +222,7 @@ export default {
if (a.authors[0].last_name > b.authors[0].last_name) return 1
return 0
}).reduce((dict, text) => {
const firstChar = text.authors ? text.authors[0].last_name[0] : 'Pas de noms'
const firstChar = text.authors ? text.authors[0].last_name[0].toUpperCase() : 'Pas de noms'
if (!(firstChar in dict)) dict[firstChar] = []
dict[firstChar].push(text)
return dict