File tree Expand file tree Collapse file tree
flipchatApp/src/main/kotlin/xyz/flipchat/app/ui/room Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,21 +134,17 @@ fun RoomCard(
134134 modifier = Modifier
135135 .padding(horizontal = CodeTheme .dimens.grid.x4)
136136 .constrain(
137- mode = ConstraintMode .AutoSize (
138- CodeTheme .typography.displaySmall.copy(
139- fontSize = 16 .sp
140- )
141- ),
137+ mode = ConstraintMode .AutoSize (CodeTheme .typography.displaySmall),
142138 text = roomInfo.title,
143- style = CodeTheme .typography.displaySmall,
139+ style = CodeTheme .typography.displaySmall.copy(textAlign = TextAlign . Center ) ,
144140 frameConstraints = Constraints (
145141 maxWidth = with (LocalDensity .current) { maxWidth.roundToPx() },
146142 maxHeight = with (LocalDensity .current) { titleSize.height.roundToPx() },
147143 )
148144 ) { textSize = it },
149145 text = roomInfo.title,
150146 style = CodeTheme .typography.displaySmall
151- .copy(fontSize = textSize, lineHeight = 24 .sp)
147+ .copy(fontSize = textSize, lineHeight = 24 .sp, textAlign = TextAlign . Center )
152148 .withDropShadow(),
153149 color = Color .White ,
154150 maxLines = 3
You can’t perform that action at this time.
0 commit comments