mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 17:37:05 +05:30
android: switch to MikePenz' Markdown renderer
This commit is contained in:
parent
5749b98b23
commit
87e9c218a2
4 changed files with 8 additions and 14 deletions
|
@ -4,12 +4,13 @@ import androidx.compose.foundation.background
|
|||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.IntrinsicSize
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.fillMaxHeight
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.width
|
||||
import androidx.compose.foundation.layout.wrapContentHeight
|
||||
import androidx.compose.material.Divider
|
||||
import androidx.compose.material.Surface
|
||||
import androidx.compose.runtime.Composable
|
||||
|
@ -47,9 +48,8 @@ fun CommentEntry(
|
|||
val startPadding = ((10 * indentLevel) + 16).dp
|
||||
|
||||
Divider(color = Color.Gray.copy(0.4f))
|
||||
Row(modifier = Modifier.wrapContentHeight()) {
|
||||
// Don't work without IntrinsicSize, which we cannot use with the Android markdown implementation
|
||||
// CommentTreeColors(indentLevel = indentLevel)
|
||||
Row(modifier = Modifier.height(IntrinsicSize.Min)) {
|
||||
CommentTreeColors(indentLevel = indentLevel)
|
||||
Column(
|
||||
modifier = Modifier.padding(start = startPadding, end = 8.dp, top = 4.dp, bottom = 4.dp)
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue