From af477c56b1608fd44c840d0fa40192924bd7b4f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Sat, 15 Nov 2025 20:23:03 +0100 Subject: [PATCH] last changes --- .../editor/metadataEditor/metadataEditor.jsx | 19 ++++--- .../editor/metadataEditor/metadataEditor.less | 55 +++++++++++-------- 2 files changed, 45 insertions(+), 29 deletions(-) diff --git a/client/homebrew/editor/metadataEditor/metadataEditor.jsx b/client/homebrew/editor/metadataEditor/metadataEditor.jsx index 5ad5c56e9..8bba6a135 100644 --- a/client/homebrew/editor/metadataEditor/metadataEditor.jsx +++ b/client/homebrew/editor/metadataEditor/metadataEditor.jsx @@ -205,15 +205,20 @@ const MetadataEditor = createClass({ renderAuthors : function(){ const authors = this.props.metadata.authors; - let text = 'None.'; - if(authors && authors.length){ - text = authors.join(', '); - } if(!this.state.isOwner || authors.length < 2) return (
- {text} + {authors.length > 0 && ( + + {authors[0]}{authors.length > 1 && ', '} + + )} + {authors.length > 1 && authors.slice(1).map((author, i)=>( + + {author}{i+2 < authors.length && ', '} + + ))}
); @@ -223,7 +228,7 @@ const MetadataEditor = createClass({