Skip to content

Commit 202d27f

Browse files
committed
[fix](dialog) Let ContentDialog background fill width
1 parent f34cfc4 commit 202d27f

File tree

1 file changed

+2
-1
lines changed
  • fluent/src/commonMain/kotlin/io/github/composefluent/component

1 file changed

+2
-1
lines changed

fluent/src/commonMain/kotlin/io/github/composefluent/component/Dialog.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import androidx.compose.foundation.layout.Column
1616
import androidx.compose.foundation.layout.Row
1717
import androidx.compose.foundation.layout.Spacer
1818
import androidx.compose.foundation.layout.fillMaxSize
19+
import androidx.compose.foundation.layout.fillMaxWidth
1920
import androidx.compose.foundation.layout.height
2021
import androidx.compose.foundation.layout.padding
2122
import androidx.compose.foundation.layout.widthIn
@@ -177,7 +178,7 @@ fun ContentDialog(
177178
) {
178179
FluentDialog(visible, size) {
179180
Column {
180-
Column(Modifier.background(FluentTheme.colors.background.layer.alt).padding(24.dp)) {
181+
Column(Modifier.fillMaxWidth().background(FluentTheme.colors.background.layer.alt).padding(24.dp)) {
181182
Text(
182183
style = FluentTheme.typography.subtitle,
183184
text = title,

0 commit comments

Comments
 (0)