From 1d8b1353c87faa1f7eebfaf1d7e3230e3e18af7f Mon Sep 17 00:00:00 2001 From: daniel-schwartz-k Date: Tue, 25 Jul 2023 10:50:48 +0300 Subject: [PATCH] dialog mobile friendly with grid --- src/components/secretDialog.tsx | 96 ++++++++++++++++++--------------- 1 file changed, 54 insertions(+), 42 deletions(-) diff --git a/src/components/secretDialog.tsx b/src/components/secretDialog.tsx index df96ed5..3f1cb29 100644 --- a/src/components/secretDialog.tsx +++ b/src/components/secretDialog.tsx @@ -9,9 +9,9 @@ import Select, { SelectChangeEvent } from '@mui/material/Select' import MenuItem from '@mui/material/MenuItem' import FormHelperText from '@mui/material/FormHelperText' import FormControl from '@mui/material/FormControl' -import Box from '@mui/material/Box' import { useEffect, useState } from 'react' import { ISavedSecret } from '../src/state' +import Grid from '@mui/material/Grid' export interface ISecretDialogProps { isOpen: boolean @@ -85,48 +85,60 @@ export default function SecretDialog(props: ISecretDialogProps) { Your secret will be saved in local storage and deleted after the expiration date. - Note: saved secrets are not visible - Note: saved secrets are not visible. + - - - - - Keep for - - + + input && input.focus()} + id="label" + label="Label" + variant="standard" + /> + + + + + + + + Delete after + + + + {/* // display: 'flex', + // justifyContent: 'space-around', + // alignItems: 'flex-end', + // mt: 1, + // flexWrap: 'wrap', */}