Skip to content

Commit

Permalink
refactor: Update margins
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Oct 31, 2024
1 parent 008e702 commit 59f1a29
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
package com.infomaniak.swisstransfer.ui.components

import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.lazy.grid.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
Expand Down Expand Up @@ -64,6 +66,11 @@ fun FileItemList(
onRemove = { onRemoveUid?.invoke(file.uid) },
)
}

item(
span = { GridItemSpan(maxLineSpan) },
content = { Spacer(modifier = Modifier.height(Margin.Mini)) },
)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,22 +138,22 @@ fun TransferDetailsScreen(
FileItemList(
modifier = Modifier
.weight(1.0f)
.padding(horizontal = Margin.Large),
.padding(horizontal = Margin.Medium),
files = transferFiles, // TODO
isRemoveButtonVisible = false,
isCheckboxVisible = { isMultiselectOn },
isUidChecked = { fileUid -> false }, // TODO
setUidCheckStatus = { fileUid, isChecked -> /* TODO */ },
) {
Column {
Spacer(modifier = Modifier.height(Margin.Large))
TransferInfos(transfer)
TransferMessage(transfer, transferSenderEmail)
TransferContent()
Spacer(modifier = Modifier.height(Margin.Large))
TransferContentHeader()
}
}

Spacer(modifier = Modifier.height(Margin.Large))

BottomBar(
isMultiselectOn = { isMultiselectOn },
onClick = { item ->
Expand Down Expand Up @@ -280,13 +280,11 @@ private fun TransferMessage(transfer: TransferUi, transferSenderEmail: String?)
}

@Composable
private fun TransferContent(
) {
private fun TransferContentHeader() {
Text(
text = stringResource(R.string.transferContentHeader),
style = SwissTransferTheme.typography.bodySmallRegular,
color = SwissTransferTheme.colors.secondaryTextColor,
modifier = Modifier.padding(top = Margin.Large),
)
}

Expand Down

0 comments on commit 59f1a29

Please sign in to comment.