Collapse long lists of message reactions (#806)

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
This commit is contained in:
jonnyandrew
2023-07-07 13:19:11 +00:00
committed by GitHub
parent 54c7e8bb57
commit d8fcfc5844
72 changed files with 387 additions and 254 deletions
@@ -28,6 +28,13 @@ import androidx.compose.ui.unit.TextUnit
@Composable
fun Dp.toSp(): TextUnit = with(LocalDensity.current) { toSp() }
/**
* Convert Sp to Dp, regarding current density.
* Can be used for instance to use Sp unit for size.
*/
@Composable
fun TextUnit.toDp(): Dp = with(LocalDensity.current) { toDp() }
/**
* Convert Px value to Dp, regarding current density.
*/