Skip to content

Commit

Permalink
ANDROAPP-5617-mobile-ui-Horizontal-RadioButoons-and-checkboxes-resize…
Browse files Browse the repository at this point in the history
…-when-clear-button-appears (#101)

* update: [ANDROAPP-5617] issue fixed

* update: [ANDROAPP-5617] Code formatted

* update: [ANDROAPP-5617] using 48dp spacer
  • Loading branch information
DavidAparicioAlbaAsenjo authored and Siddharth Agarwal committed Oct 17, 2023
1 parent 6b5987f commit af1e732
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.hisp.dhis.mobile.ui.designsystem.component

import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.offset
import androidx.compose.foundation.layout.width
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.Cancel
import androidx.compose.material3.Icon
Expand Down Expand Up @@ -85,6 +87,8 @@ fun InputCheckBox(
onClearSelection.invoke()
},
)
} else {
Spacer(modifier = Modifier.width(Spacing.Spacing48))
}
},
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.hisp.dhis.mobile.ui.designsystem.component

import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.offset
import androidx.compose.foundation.layout.width
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.Cancel
import androidx.compose.material3.Icon
Expand Down Expand Up @@ -89,6 +91,8 @@ fun InputRadioButton(
onItemChange.invoke(null)
},
)
} else {
Spacer(modifier = Modifier.width(Spacing.Spacing48))
}
},
)
Expand Down

0 comments on commit af1e732

Please sign in to comment.