Format file

This commit is contained in:
Benoit Marty 2024-12-16 09:58:02 +01:00 committed by Benoit Marty
parent 740b9c85ca
commit 83e474f118

View file

@ -49,8 +49,8 @@ fun FileItemView(
) { ) {
Column( Column(
modifier = modifier modifier = modifier
.fillMaxWidth() .fillMaxWidth()
.padding(top = 20.dp, start = 16.dp, end = 16.dp), .padding(top = 20.dp, start = 16.dp, end = 16.dp),
) { ) {
FilenameRow( FilenameRow(
file = file, file = file,
@ -78,24 +78,24 @@ private fun FilenameRow(
) { ) {
Row( Row(
modifier = Modifier modifier = Modifier
.clip(RoundedCornerShape(12.dp)) .clip(RoundedCornerShape(12.dp))
.background( .background(
color = ElementTheme.colors.bgSubtleSecondary, color = ElementTheme.colors.bgSubtleSecondary,
shape = RoundedCornerShape(12.dp), shape = RoundedCornerShape(12.dp),
) )
.clickable { onClick() } .clickable { onClick() }
.fillMaxWidth() .fillMaxWidth()
.padding(start = 12.dp, end = 36.dp, top = 8.dp, bottom = 8.dp), .padding(start = 12.dp, end = 36.dp, top = 8.dp, bottom = 8.dp),
verticalAlignment = Alignment.CenterVertically, verticalAlignment = Alignment.CenterVertically,
) { ) {
Icon( Icon(
modifier = Modifier modifier = Modifier
.background( .background(
color = ElementTheme.colors.bgActionSecondaryRest, color = ElementTheme.colors.bgActionSecondaryRest,
shape = CircleShape, shape = CircleShape,
) )
.size(32.dp) .size(32.dp)
.padding(6.dp), .padding(6.dp),
imageVector = CompoundIcons.Attachment(), imageVector = CompoundIcons.Attachment(),
contentDescription = null, contentDescription = null,
) )