Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
Expand All @@ -38,10 +40,11 @@ fun AspectRatioTool(
selectedOption: SizeOption,
onSizeOptionSelected: (SizeOption) -> Unit,
modifier: Modifier = Modifier,
singleLine: Boolean = true,
singleLine: Boolean = false,
) {
GenericTool(
modifier = modifier.wrapContentSize(),
modifier = modifier.wrapContentSize()
.verticalScroll(rememberScrollState()),
tools = sizeOptions,
singleLine = singleLine,
selectedOption = selectedOption,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fun BackgroundTool(
individualToolContent = { tool ->
Box(
modifier = Modifier
.aspectRatio(1f)
.size(70.dp)
.border(
2.dp,
color = MaterialTheme.colorScheme.primary,
Expand Down