mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
Remove the hardcoded text style in TextBlock
This should fix the text size (again) in the new timeline renderer. Looks like this happened when a cherry-pick operation went wrong.
This commit is contained in:
+2
-1
@@ -31,6 +31,7 @@ import androidx.compose.foundation.layout.widthIn
|
|||||||
import androidx.compose.foundation.rememberScrollState
|
import androidx.compose.foundation.rememberScrollState
|
||||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||||
import androidx.compose.foundation.text.InlineTextContent
|
import androidx.compose.foundation.text.InlineTextContent
|
||||||
|
import androidx.compose.material3.LocalTextStyle
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.runtime.Immutable
|
import androidx.compose.runtime.Immutable
|
||||||
import androidx.compose.runtime.SideEffect
|
import androidx.compose.runtime.SideEffect
|
||||||
@@ -218,7 +219,7 @@ private fun ParagraphView(
|
|||||||
TextBlock(
|
TextBlock(
|
||||||
text = node.text,
|
text = node.text,
|
||||||
inlineContent = node.inlineContent,
|
inlineContent = node.inlineContent,
|
||||||
textStyle = ElementTheme.typography.fontBodyMdRegular,
|
textStyle = LocalTextStyle.current,
|
||||||
context = context,
|
context = context,
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
onTextLayout = { measureLastLine?.invoke(it) },
|
onTextLayout = { measureLastLine?.invoke(it) },
|
||||||
|
|||||||
Reference in New Issue
Block a user