mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Fix reply content icon for attachment.
See https://www.figma.com/design/G1xy0HDZKJf5TCRFmKb5d5/Compound-Android-Components?node-id=2019-6286
This commit is contained in:
-2
@@ -19,7 +19,6 @@ import androidx.compose.runtime.Composable
|
|||||||
import androidx.compose.ui.Alignment
|
import androidx.compose.ui.Alignment
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.draw.clip
|
import androidx.compose.ui.draw.clip
|
||||||
import androidx.compose.ui.draw.rotate
|
|
||||||
import androidx.compose.ui.graphics.Color
|
import androidx.compose.ui.graphics.Color
|
||||||
import androidx.compose.ui.layout.ContentScale
|
import androidx.compose.ui.layout.ContentScale
|
||||||
import androidx.compose.ui.tooling.preview.PreviewParameter
|
import androidx.compose.ui.tooling.preview.PreviewParameter
|
||||||
@@ -95,7 +94,6 @@ fun AttachmentThumbnail(
|
|||||||
Icon(
|
Icon(
|
||||||
imageVector = CompoundIcons.Attachment(),
|
imageVector = CompoundIcons.Attachment(),
|
||||||
contentDescription = info.textContent,
|
contentDescription = info.textContent,
|
||||||
modifier = Modifier.rotate(-45f)
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
AttachmentThumbnailType.Location -> {
|
AttachmentThumbnailType.Location -> {
|
||||||
|
|||||||
+3
@@ -49,6 +49,9 @@ import io.element.android.libraries.matrix.ui.messages.sender.SenderName
|
|||||||
import io.element.android.libraries.matrix.ui.messages.sender.SenderNameMode
|
import io.element.android.libraries.matrix.ui.messages.sender.SenderNameMode
|
||||||
import io.element.android.libraries.ui.strings.CommonStrings
|
import io.element.android.libraries.ui.strings.CommonStrings
|
||||||
|
|
||||||
|
/**
|
||||||
|
* https://www.figma.com/design/G1xy0HDZKJf5TCRFmKb5d5/Compound-Android-Components?node-id=2019-6286
|
||||||
|
*/
|
||||||
@Composable
|
@Composable
|
||||||
fun InReplyToView(
|
fun InReplyToView(
|
||||||
inReplyTo: InReplyToDetails,
|
inReplyTo: InReplyToDetails,
|
||||||
|
|||||||
Reference in New Issue
Block a user