Fixes previous attempt to auto-hide divider

The divider prop was only being set when title was present, and the
default value for divider is true. This unconditionally sets the divider
prop.

Signed-off-by: Adam Kunicki <kunickiaj@gmail.com>
This commit is contained in:
Adam Kunicki
2025-03-21 09:53:45 -07:00
parent 32bd45baa6
commit 2e4cb15188
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-home-react': patch
---
Fixes auto-hiding of content divider when title not specified
+2 -1
View File
@@ -152,7 +152,8 @@ function CardExtension<T>(props: CardExtensionComponentProps<T>) {
}
const cardProps = {
...(title && { title, divider: !!title }),
divider: !!title,
...(title && { title }),
...(Settings && !isCustomizable
? {
action: (