feat(ui): enhance comment input in PlaylistEdit with multiline support and resizing
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
6c7f8314e2
commit
6fce30c133
1 changed files with 9 additions and 1 deletions
|
|
@ -34,7 +34,15 @@ const PlaylistEditForm = (props) => {
|
||||||
return (
|
return (
|
||||||
<SimpleForm redirect="list" variant={'outlined'} {...props}>
|
<SimpleForm redirect="list" variant={'outlined'} {...props}>
|
||||||
<TextInput source="name" validate={required()} />
|
<TextInput source="name" validate={required()} />
|
||||||
<TextInput multiline source="comment" />
|
<TextInput
|
||||||
|
multiline
|
||||||
|
minRows={3}
|
||||||
|
source="comment"
|
||||||
|
fullWidth
|
||||||
|
inputProps={{
|
||||||
|
style: { resize: 'vertical' },
|
||||||
|
}}
|
||||||
|
/>
|
||||||
{permissions === 'admin' ? (
|
{permissions === 'admin' ? (
|
||||||
<ReferenceInput
|
<ReferenceInput
|
||||||
source="ownerId"
|
source="ownerId"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue