Skip to content

Commit b7676b4

Browse files
author
Thomas Horta
committed
Don't add spacer if there is only title or menu
1 parent 0e2a5f5 commit b7676b4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

WordPress/src/main/java/org/wordpress/android/ui/mysite/cards/compose/MySiteCardToolbar.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ fun MySiteCardToolbar(
7878
) {
7979
content?.invoke(this)
8080

81-
Spacer(modifier = Modifier.width(16.dp)) // minimum spacing between content and context menu
81+
if (content != null && showContextMenu) {
82+
// minimum spacing between content and context menu if both are shown
83+
Spacer(modifier = Modifier.width(16.dp))
84+
}
8285

8386
if (showContextMenu) {
8487
CardDropDownMenu(

0 commit comments

Comments
 (0)