fix: Correct formatting and indentation in FileAttachment component
This commit is contained in:
@@ -657,17 +657,17 @@ fun FileAttachment(
|
|||||||
DownloadStatus.ERROR -> "File expired"
|
DownloadStatus.ERROR -> "File expired"
|
||||||
else -> "${formatFileSize(fileSize)} $fileExtension"
|
else -> "${formatFileSize(fileSize)} $fileExtension"
|
||||||
},
|
},
|
||||||
fontSize = 12.sp,
|
fontSize = 12.sp,
|
||||||
color = if (downloadStatus == DownloadStatus.ERROR) {
|
color = if (downloadStatus == DownloadStatus.ERROR) {
|
||||||
Color(0xFFE53935)
|
Color(0xFFE53935)
|
||||||
} else if (isOutgoing) {
|
} else if (isOutgoing) {
|
||||||
Color.White.copy(alpha = 0.7f)
|
Color.White.copy(alpha = 0.7f)
|
||||||
} else {
|
} else {
|
||||||
PrimaryBlue
|
PrimaryBlue
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Time and checkmarks (bottom-right overlay) for outgoing files
|
// Time and checkmarks (bottom-right overlay) for outgoing files
|
||||||
if (isOutgoing) {
|
if (isOutgoing) {
|
||||||
|
|||||||
Reference in New Issue
Block a user