Skip to content

Commit

Permalink
improve reset dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
T8RIN committed Mar 30, 2024
1 parent f5b0f57 commit 1b2fe16
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/resources/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,6 @@
<string name="coordinates_rounding_tolerance">Coordinates Rounding Tolerance</string>
<string name="path_scale">Path Scale</string>
<string name="reset_properties">Reset properties</string>
<string name="reset_properties_sub">All properties will be set to default values</string>
<string name="reset_properties_sub">All properties will be set to default values, notice that this action cannot be undone</string>
<string name="detailed">Detailed</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

package ru.tech.imageresizershrinker.core.ui.widget.dialogs

import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.DoneOutline
import androidx.compose.material3.AlertDialog
Expand Down Expand Up @@ -59,7 +60,12 @@ fun ResetDialog(
)
},
title = { Text(title) },
text = { Text(text) },
text = {
Text(
text = text,
modifier = Modifier.fillMaxWidth()
)
},
onDismissRequest = onDismiss,
confirmButton = {
EnhancedButton(
Expand Down

0 comments on commit 1b2fe16

Please sign in to comment.