Skip to content

Commit

Permalink
update large dialogs to a larger size, and resize according to the wi…
Browse files Browse the repository at this point in the history
…ndows size
  • Loading branch information
sunny-chung committed Dec 10, 2023
1 parent f0e8a46 commit 8a65598
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ fun AppView() {
)
Box(
modifier = Modifier
.padding(60.dp)
.border(1.dp, color = colors.highlight)
.background(colors.background)
.clickable(
Expand All @@ -145,7 +146,6 @@ fun AppView() {
.align(
Alignment.Center
)
.sizeIn(maxWidth = 480.dp, maxHeight = 300.dp)
) {
LaunchedEffect(Unit) {
focusRequester.requestFocus()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ fun ProjectAndEnvironmentViewV2(
subproject = selectedSubproject!!,
onSubprojectUpdate = { onUpdateSubproject(it) },
initialEnvironment = selectedEnvironment,
modifier = Modifier.padding(12.dp).size(width = 480.dp, height = 300.dp),
modifier = Modifier.padding(12.dp).fillMaxSize(),
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.offset
Expand Down Expand Up @@ -51,7 +52,7 @@ import java.io.File
fun SettingDialogView(closeDialog: () -> Unit) {
val colors = LocalColor.current
var selectedTabIndex by remember { mutableStateOf(0) }
Column(modifier = Modifier.size(width = 480.dp, height = 300.dp)) {
Column(modifier = Modifier.fillMaxSize()) {
TabsView(
selectedIndex = selectedTabIndex,
contents = SettingTab.values().map { { AppTabLabel(text = it.name) } },
Expand Down

0 comments on commit 8a65598

Please sign in to comment.