From 732da32ac66f4e10b784b1a26ccbbba1b12c8b78 Mon Sep 17 00:00:00 2001 From: jackahl Date: Fri, 29 Dec 2023 10:47:50 +0100 Subject: [PATCH] add changelog --- news/6.feature | 1 + src/components/Logo/View.jsx | 5 +++-- src/components/Logo/schema.js | 9 +++------ 3 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 news/6.feature diff --git a/news/6.feature b/news/6.feature new file mode 100644 index 0000000..e87a440 --- /dev/null +++ b/news/6.feature @@ -0,0 +1 @@ +Compatiblity with kitconcept volto-light-theme container widths @jackahl diff --git a/src/components/Logo/View.jsx b/src/components/Logo/View.jsx index ee258cd..3d666b9 100644 --- a/src/components/Logo/View.jsx +++ b/src/components/Logo/View.jsx @@ -44,8 +44,9 @@ const View = (props) => { /> ))} - -

{data.heading}

+ {data.heading && ( +

{data.heading}

+ )} {config.blocks.blocksConfig.logo.showDescriptionField && data.description &&

{data.description}

} diff --git a/src/components/Logo/schema.js b/src/components/Logo/schema.js index 5cb6a5d..d260a24 100644 --- a/src/components/Logo/schema.js +++ b/src/components/Logo/schema.js @@ -36,12 +36,9 @@ export const LogoBlockSchema = (props) => { { id: 'default', title: 'Default', - fields: [ - 'logo', - 'heading', - config.blocks.blocksConfig.logo.showDescriptionField && 'description', - 'link', - ], + fields: config.blocks.blocksConfig.logo.showDescriptionField + ? ['logo', 'heading', 'description', 'link'] + : ['logo', 'heading', 'link'], }, ], properties: {