Merge pull request #7820 from element-hq/fix/fix-textblock-style-after-headers-pr

Remove the hardcoded text style in `TextBlock`
This commit is contained in:
ganfra
2026-09-30 13:25:50 +02:00
committed by GitHub
25 changed files with 50 additions and 49 deletions
@@ -31,6 +31,7 @@ import androidx.compose.foundation.layout.widthIn
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.InlineTextContent
import androidx.compose.material3.LocalTextStyle
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.SideEffect
@@ -218,7 +219,7 @@ private fun ParagraphView(
TextBlock(
text = node.text,
inlineContent = node.inlineContent,
textStyle = ElementTheme.typography.fontBodyMdRegular,
textStyle = LocalTextStyle.current,
context = context,
modifier = modifier,
onTextLayout = { measureLastLine?.invoke(it) },