Skip to content

Commit

Permalink
Merge pull request #1026 from ked4ma/feature/timetable-detail-title-o…
Browse files Browse the repository at this point in the history
…n-bigfont

enable to display session title when bigfont / bigdisplay
  • Loading branch information
takahirom authored Aug 30, 2023
2 parents 03d3e58 + 5b6304d commit b1646f6
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.github.droidkaigi.confsched2023.sessions.component

import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
Expand Down Expand Up @@ -105,7 +106,13 @@ private fun ResizeableText(
}
},
style = styles[styleIndex],
modifier = Modifier.padding(end = 16.dp),
modifier = Modifier
.padding(end = 16.dp)
// title heights of LargeTopAppBar will use `TopAppBarLargeTokens.ContainerHeight`, `TopAppBarSmallTokens.ContainerHeight` and `scroll offset`.
// because of this, this height become taller than our expectation.
// we want to fix max height, but `ContainerHeight`s are internal values in material3.
// so set as constant dp. (Large - Small)
.heightIn(max = 88.dp),
)
}

Expand Down

0 comments on commit b1646f6

Please sign in to comment.