From 26d7c4a0212232d1bb90803c7aa1aa19938b281f Mon Sep 17 00:00:00 2001 From: seb Date: Mon, 3 Aug 2026 08:41:14 +0200 Subject: [PATCH] Keep category pills visible in article name edit mode --- .../article/boxes/ArticleViewName.jsx | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/src/components/article/boxes/ArticleViewName.jsx b/src/components/article/boxes/ArticleViewName.jsx index b6536ad..56feefa 100644 --- a/src/components/article/boxes/ArticleViewName.jsx +++ b/src/components/article/boxes/ArticleViewName.jsx @@ -106,13 +106,24 @@ export default function ArticleViewName({ article: articleData, categories, root )} renderEdit={(draft, onChange, inputRef) => ( - onChange({ name })} - sx={articleNameFieldSx} - /> + + + onChange({ name })} + sx={articleNameFieldSx} + /> + + {categoryLabels.length > 0 && ( + + {categoryLabels.map(({ id, label }) => ( + + ))} + + )} + )} /> );