mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Format file
This commit is contained in:
committed by
Benoit Marty
parent
afed9268e7
commit
85baf612ed
+16
-16
@@ -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,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user