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:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-home-react': patch
|
||||
---
|
||||
|
||||
Fixes auto-hiding of content divider when title not specified
|
||||
@@ -152,7 +152,8 @@ function CardExtension<T>(props: CardExtensionComponentProps<T>) {
|
||||
}
|
||||
|
||||
const cardProps = {
|
||||
...(title && { title, divider: !!title }),
|
||||
divider: !!title,
|
||||
...(title && { title }),
|
||||
...(Settings && !isCustomizable
|
||||
? {
|
||||
action: (
|
||||
|
||||
Reference in New Issue
Block a user