Compare commits

3 Commits

Author SHA1 Message Date
017a2ae5a4 multiline clip name 2026-03-01 17:47:59 -05:00
791abef1ef better auto focus for delete 2026-03-01 17:35:24 -05:00
31cc3079a8 kinda bad, but functional delete on enter 2026-03-01 17:31:14 -05:00
2 changed files with 5 additions and 3 deletions

View File

@ -35,6 +35,7 @@ export default function DeleteClipDialog({
<button <button
type="button" type="button"
onClick={onDelete} onClick={onDelete}
autoFocus
className="bg-plum hover:bg-plumDark text-white font-bold h-10 px-4 rounded-md" className="bg-plum hover:bg-plumDark text-white font-bold h-10 px-4 rounded-md"
> >
Delete Delete

View File

@ -4,6 +4,7 @@ import {
DialogTitle, DialogTitle,
DialogContent, DialogContent,
DialogActions, DialogActions,
TextField,
} from '@mui/material'; } from '@mui/material';
export default function NameEditDialog({ export default function NameEditDialog({
@ -35,17 +36,17 @@ export default function NameEditDialog({
> >
<DialogTitle>Edit Clip Name</DialogTitle> <DialogTitle>Edit Clip Name</DialogTitle>
<DialogContent> <DialogContent>
<textarea <TextField
autoFocus autoFocus
multiline
variant="standard"
className="font-bold text-lg bg-transparent outline-none border-b border-plum focus:border-plumDark text-white mb-1 w-full text-center resize-y" className="font-bold text-lg bg-transparent outline-none border-b border-plum focus:border-plumDark text-white mb-1 w-full text-center resize-y"
value={input} value={input}
onChange={(e) => { onChange={(e) => {
setInput(e.target.value); setInput(e.target.value);
}} }}
rows={3}
onFocus={(event) => event.target.select()} onFocus={(event) => event.target.select()}
aria-label="Edit clip name" aria-label="Edit clip name"
style={{ minHeight: '3em' }}
/> />
</DialogContent> </DialogContent>
<DialogActions> <DialogActions>