Align some minimum size component in attack/object/spell/skill

This commit is contained in:
Thomas Andres Gomez 2024-01-11 06:25:05 +01:00
parent 6c5aec175c
commit 755caf1194
3 changed files with 6 additions and 2 deletions

View file

@ -11,6 +11,7 @@ import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
import androidx.compose.material.minimumInteractiveComponentSize
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
@ -59,8 +60,8 @@ fun Attack(
) {
Row(
modifier = Modifier
.heightIn(min = 52.dp)
.padding(paddingValues = padding)
.minimumInteractiveComponentSize()
.then(other = modifier),
horizontalArrangement = Arrangement.spacedBy(space = 16.dp),
verticalAlignment = Alignment.CenterVertically,

View file

@ -12,6 +12,7 @@ import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
import androidx.compose.material.minimumInteractiveComponentSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
@ -63,8 +64,8 @@ fun SkillItem(
Box(
modifier = Modifier
.clickable { onInfo(skill) }
.minimumInteractiveComponentSize()
.padding(paddingValues = padding)
.heightIn(min = 32.dp)
.then(other = modifier),
contentAlignment = Alignment.Center,
) {

View file

@ -13,6 +13,7 @@ import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material.minimumInteractiveComponentSize
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.OutlinedButton
@ -70,6 +71,7 @@ fun Spell(
Row(
modifier = Modifier
.clickable { onClick(spell.name) }
.minimumInteractiveComponentSize()
.padding(paddingValues = padding)
.then(other = modifier),
horizontalArrangement = Arrangement.spacedBy(space = 12.dp),