style: polish confirmation and prompt dialog experience

This commit is contained in:
cesnimda
2026-03-22 14:22:13 +01:00
parent 0c28e22a1c
commit e25b46d51c
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ export function PromptProvider({ children }: { children: React.ReactNode }) {
<DialogTitle>{state.title}</DialogTitle>
<DialogContent>
<Typography sx={{ color: "text.secondary", mb: 1.5 }}>{state.message}</Typography>
<TextField autoFocus fullWidth value={value} onChange={(e) => setValue(e.target.value)} />
<TextField autoFocus fullWidth value={value} onChange={(e) => setValue(e.target.value)} inputProps={{ maxLength: 180 }} helperText={`${value.length}/180`} />
</DialogContent>
<DialogActions>
<Button onClick={() => closeWith(null)}>{state.cancelLabel}</Button>