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 @@ -73,6 +73,7 @@ fun TextInput(
style: TextStyle = CodeTheme.typography.textMedium,
placeholderStyle: TextStyle = CodeTheme.typography.textMedium,
shape: Shape = CodeTheme.shapes.extraSmall,
contentAlignment: Alignment.Vertical = Alignment.CenterVertically,
textFieldAlignment: Alignment = Alignment.CenterStart,
colors: TextFieldColors = inputColors(),
enabled: Boolean = true,
Expand Down Expand Up @@ -147,6 +148,7 @@ fun TextInput(
leadingIcon = leadingIcon,
trailingIcon = trailingIcon,
contentPadding = contentPadding,
contentAlignment = contentAlignment,
textFieldAlignment = textFieldAlignment,
shape = shape,
innerTextField = it,
Expand Down Expand Up @@ -185,6 +187,7 @@ private fun DecoratorBox(
leadingIcon: (@Composable () -> Unit)?,
trailingIcon: (@Composable () -> Unit)?,
shape: Shape,
contentAlignment: Alignment.Vertical = Alignment.CenterVertically,
textFieldAlignment: Alignment = Alignment.CenterStart,
innerTextField: @Composable () -> Unit,
) {
Expand All @@ -196,7 +199,7 @@ private fun DecoratorBox(
color = borderColor,
shape = shape,
),
verticalAlignment = Alignment.CenterVertically,
verticalAlignment = contentAlignment,
horizontalArrangement = Arrangement.spacedBy(CodeTheme.dimens.staticGrid.x2)
) {
leadingIcon?.invoke()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.requiredSize
import androidx.compose.material.icons.rounded.ArrowUpward
import androidx.compose.ui.Alignment
import com.getcode.theme.extraSmall

@Composable
Expand Down Expand Up @@ -87,6 +88,7 @@ fun ChatInput(
keyboardOptions = KeyboardOptions.Default.copy(
capitalization = KeyboardCapitalization.Sentences
),
contentAlignment = Alignment.Bottom,
contentPadding = PaddingValues(
start = CodeTheme.dimens.staticGrid.x3,
top = CodeTheme.dimens.staticGrid.x2,
Expand Down
Loading