Skip to content

Commit

Permalink
fix disabled composer padding/margin diff with composer
Browse files Browse the repository at this point in the history
  • Loading branch information
BillCarsonFr committed Jan 24, 2025
1 parent caf2662 commit 3933054
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.IntrinsicSize
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.requiredHeightIn
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
Expand All @@ -39,7 +41,7 @@ internal fun DisabledComposerView(
modifier: Modifier = Modifier,
) {
Row(
modifier = modifier.padding(4.dp)
modifier = modifier.padding(3.dp)
.fillMaxWidth(),
verticalAlignment = Alignment.CenterVertically,
) {
Expand Down Expand Up @@ -70,8 +72,10 @@ internal fun DisabledComposerView(
.weight(1f),
)

Spacer(modifier = Modifier.width(8.dp))
IconButton(
modifier = Modifier
.padding(start= 2.dp)
.size(48.dp),
enabled = false,
onClick = {},
Expand Down

0 comments on commit 3933054

Please sign in to comment.