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:
parent
6b03d1d1e8
commit
8dab306acd
2 changed files with 3 additions and 2 deletions
|
|
@ -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 -> {
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue