Skip to content

Commit

Permalink
refactor: refactor into smaller elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex720p committed Dec 15, 2024
1 parent f8958cc commit 3392c4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.android.streetworkapp.ui.image

class FullScreenImagePopupTest {
}
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ fun FullScreenImagePopup(
@Composable
fun DismissPopUp(onDismiss: () -> Unit, maxHeight: Dp) {
Row(
modifier = Modifier.fillMaxWidth().heightIn(max = maxHeight * 0.1f),
modifier = Modifier.fillMaxWidth().heightIn(max = maxHeight * 0.075f),
horizontalArrangement = Arrangement.End) {
IconButton(
onClick = onDismiss,
Expand Down Expand Up @@ -285,7 +285,7 @@ fun ImageInformation(currentImage: ParkImage, maxHeight: Dp) {
Column(
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.spacedBy(5.dp),
modifier = Modifier.padding(vertical = 25.dp).heightIn(max = maxHeight * 0.2f)) {
modifier = Modifier.padding(top = 25.dp).heightIn(max = maxHeight * 0.2f)) {
Text(
"Uploaded by ${currentImage.username}",
color = FullScreenImagePopUpSetting.fontColor,
Expand Down

0 comments on commit 3392c4a

Please sign in to comment.