mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 21:07:04 +05:30
Revert "fix(common): make text in comments screen selectable"
Causes frequent crashes
This reverts commit 778be597dd
.
This commit is contained in:
parent
fdd2f7008c
commit
401214794d
1 changed files with 6 additions and 11 deletions
|
@ -19,7 +19,6 @@ import androidx.compose.foundation.layout.height
|
|||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.foundation.text.selection.SelectionContainer
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.Public
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
|
@ -71,7 +70,7 @@ internal fun CommentsHeader(
|
|||
modifier = Modifier.padding(16.dp).fillMaxWidth(),
|
||||
verticalArrangement = Arrangement.spacedBy(8.dp),
|
||||
) {
|
||||
SelectionContainer { PostTitle(title = postDetails.title) }
|
||||
PostTitle(title = postDetails.title)
|
||||
TagRow(tags = postDetails.tags.toImmutableList())
|
||||
Spacer(Modifier.height(4.dp))
|
||||
|
||||
|
@ -85,9 +84,7 @@ internal fun CommentsHeader(
|
|||
}
|
||||
|
||||
if (postDetails.description.isNotBlank()) {
|
||||
SelectionContainer {
|
||||
ThemedRichText(htmlConverter.convertHTMLToMarkdown(postDetails.description))
|
||||
}
|
||||
Spacer(Modifier.height(4.dp))
|
||||
}
|
||||
Submitter(
|
||||
|
@ -172,7 +169,6 @@ internal fun CommentEntry(
|
|||
Modifier.clickable { uriHandler.openUri("https://lobste.rs/u/${comment.user.username}") },
|
||||
)
|
||||
if (commentNode.isExpanded) {
|
||||
SelectionContainer {
|
||||
ThemedRichText(
|
||||
text = htmlConverter.convertHTMLToMarkdown(comment.comment),
|
||||
modifier = Modifier.padding(top = 8.dp)
|
||||
|
@ -180,7 +176,6 @@ internal fun CommentEntry(
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue