Skip to content

Commit

Permalink
Update compose to 2024.09.02
Browse files Browse the repository at this point in the history
  • Loading branch information
reconman committed Sep 22, 2024
1 parent 1173a8a commit 7fe8bbd
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.indication
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.interaction.PressInteraction
import androidx.compose.material.ripple.rememberRipple
import androidx.compose.material.ripple
import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
Expand Down Expand Up @@ -88,6 +88,6 @@ fun Modifier.holdRepeatClickable(
}
.indication(
interactionSource = interactionSource,
indication = rememberRipple()
indication = ripple()
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private fun BattleConfigContent(
Card(
modifier = Modifier
.padding(horizontal = 16.dp)
.padding(bottom = 16.dp)
.padding(bottom = 5.dp)
) {
Column {
Row(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ fun Pref<Set<MaterialEnum>>.Materials() {
modifier = Modifier
.fillMaxWidth()
.clickable { dialog.show() }
.heightIn(min = 70.dp)
.heightIn(min = 55.dp)
.padding(vertical = 5.dp)
) {
Text(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package io.github.fate_grand_automata.ui.battle_config_item

import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.foundation.lazy.items
Expand Down Expand Up @@ -99,6 +101,8 @@ fun SkillCommandSummary(skillCommand: List<SkillMakerEntry>) {
LazyRow(
modifier = Modifier
.padding(vertical = 2.dp)
.height(25.dp) // without this, the app crashes when opening battle configs
.fillMaxWidth()
) {
items(skillCommand) {
Card(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ package io.github.fate_grand_automata.ui.spam

import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyRow
Expand Down Expand Up @@ -125,7 +127,9 @@ fun SpamScreen(

item {
LazyRow(
contentPadding = PaddingValues(16.dp, 5.dp)
contentPadding = PaddingValues(10.dp, 5.dp),
horizontalArrangement = Arrangement.spacedBy(4.dp),
modifier = Modifier.fillMaxWidth()
) {
items(vm.presets) { preset ->
HeadingButton(
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ tesseract4android_version = "4.7.0"

timber_version = "5.0.1"

compose_bom_version = "2024.06.00"
compose_bom_version = "2024.09.02"



Expand Down

0 comments on commit 7fe8bbd

Please sign in to comment.