Skip to content

Commit 3933054

Browse files
committed
fix disabled composer padding/margin diff with composer
1 parent caf2662 commit 3933054

File tree

1 file changed

+5
-1
lines changed
  • features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/messagecomposer

1 file changed

+5
-1
lines changed

features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/messagecomposer/DisabledComposerView.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ import androidx.compose.foundation.layout.Box
1313
import androidx.compose.foundation.layout.Column
1414
import androidx.compose.foundation.layout.IntrinsicSize
1515
import androidx.compose.foundation.layout.Row
16+
import androidx.compose.foundation.layout.Spacer
1617
import androidx.compose.foundation.layout.fillMaxWidth
1718
import androidx.compose.foundation.layout.height
1819
import androidx.compose.foundation.layout.padding
1920
import androidx.compose.foundation.layout.requiredHeightIn
2021
import androidx.compose.foundation.layout.size
22+
import androidx.compose.foundation.layout.width
2123
import androidx.compose.foundation.shape.RoundedCornerShape
2224
import androidx.compose.runtime.Composable
2325
import androidx.compose.ui.Alignment
@@ -39,7 +41,7 @@ internal fun DisabledComposerView(
3941
modifier: Modifier = Modifier,
4042
) {
4143
Row(
42-
modifier = modifier.padding(4.dp)
44+
modifier = modifier.padding(3.dp)
4345
.fillMaxWidth(),
4446
verticalAlignment = Alignment.CenterVertically,
4547
) {
@@ -70,8 +72,10 @@ internal fun DisabledComposerView(
7072
.weight(1f),
7173
)
7274

75+
Spacer(modifier = Modifier.width(8.dp))
7376
IconButton(
7477
modifier = Modifier
78+
.padding(start= 2.dp)
7579
.size(48.dp),
7680
enabled = false,
7781
onClick = {},

0 commit comments

Comments
 (0)