Skip to content

Commit

Permalink
Fix portrait artist page title alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
toasterofbread committed Apr 22, 2024
1 parent 93d04d3 commit b309b97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ agp.version=8.1.0
compose.version=1.6.1

# Dependency versions
composekit.version=b102971f53
composekit.version=d5830b5032
ytmkt.version=eff5fccf88
mediasessionkt.version=0.0.1
ktor.version=2.3.9
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ fun ArtistLayout(
},
contentAlignment = Alignment.BottomCenter
) {
TitleBar(
ArtistPageTitleBar(
artist,
Modifier
.offset {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ import com.toasterofbread.spmp.resources.getString
import com.toasterofbread.spmp.ui.layout.apppage.mainpage.appTextField

@Composable
fun TitleBar(item: MediaItem, modifier: Modifier = Modifier) {
fun ArtistPageTitleBar(item: MediaItem, modifier: Modifier = Modifier) {
val player = LocalPlayerState.current

val horizontal_padding = 20.dp
var editing_title by remember { mutableStateOf(false) }
Crossfade(editing_title) { editing ->
Column(
modifier.padding(start = horizontal_padding).fillMaxHeight(),
modifier.padding(start = horizontal_padding).fillMaxHeight(),
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.spacedBy(10.dp, Alignment.Bottom)
) {
Expand Down Expand Up @@ -141,7 +141,7 @@ fun TitleBar(item: MediaItem, modifier: Modifier = Modifier) {
.padding(end = horizontal_padding),
style = LocalTextStyle.current.copy(
textAlign = TextAlign.Center,
fontSize = 35.sp,
fontSize = 35.sp
)
)
}
Expand Down

0 comments on commit b309b97

Please sign in to comment.