Skip to content

Commit

Permalink
Remove unnecessary modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
tevincent committed Oct 30, 2024
1 parent 976d7a2 commit ee76361
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
package com.infomaniak.swisstransfer.ui.screen.newtransfer

import android.content.res.Configuration
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
Expand All @@ -40,18 +42,15 @@ import com.infomaniak.swisstransfer.ui.utils.HumanReadableSizeUtils.getSpaceLeft
fun FilesSize(files: List<FileUi>, withSpaceLeft: Boolean) {
Row(
modifier = Modifier
.fillMaxWidth()
.wrapContentHeight()
.padding(vertical = Margin.Medium)
.padding(vertical = Margin.Medium),
) {
val filesCount = files.count()
val filesSize = LocalContext.current.getFilesSize(files)
val filesDetail = "${pluralStringResource(R.plurals.filesCount, filesCount, filesCount)}$filesSize"
Text(
filesDetail,
modifier = Modifier
.padding(start = Margin.Medium)
.wrapContentWidth(),
.padding(start = Margin.Medium),
color = SwissTransferTheme.colors.secondaryTextColor,
style = SwissTransferTheme.typography.bodySmallRegular,
)
Expand Down

0 comments on commit ee76361

Please sign in to comment.