diff --git a/app/views/posts/attributes/_content.haml b/app/views/posts/attributes/_content.haml index 5300f28..b4d1ad2 100644 --- a/app/views/posts/attributes/_content.haml +++ b/app/views/posts/attributes/_content.haml @@ -34,10 +34,10 @@ -# HAML cringe TODO: generar IDs para labels - .editor-auxiliary-toolbar.scrollbar-black{ data: { editor: { auxiliary: { toolbar: '' } } } } + .editor-auxiliary-toolbar.mt-1.scrollbar-black{ data: { editor: { auxiliary: { toolbar: '' } } } } .form-group{ data: { editor: { auxiliary: 'mark' } } } %label{ for: 'mark-color' }= t('editor.color') - %input{ type: 'color', data: { prop: 'mark-color' } }/ + %input.form-control{ type: 'color', data: { prop: 'mark-color' } }/ %div{ data: { editor: { auxiliary: 'img' } } } .row @@ -52,12 +52,12 @@ -# https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Containers .form-group{ data: { editor: { auxiliary: 'audio' } } } .custom-file - %input.custom-file-input{ type: 'file', data: { prop: 'audio-file' }, accept: 'audio/flac,audio/mp4,audio/ogg,audio/webm,audio/mp3' }/ + %input.custom-file-input{ type: 'file', data: { prop: 'audio-file' }, accept: 'audio/*' }/ %label.custom-file-label{ for: 'audio-file' }= t('editor.file.audio') .form-group{ data: { editor: { auxiliary: 'video' } } } .custom-file - %input.custom-file-input{ type: 'file', data: { prop: 'video-file' }, accept: 'video/mp4,video/ogg,video/webm' }/ + %input.custom-file-input{ type: 'file', data: { prop: 'video-file' }, accept: 'video/*' }/ %label.custom-file-label{ for: 'video-file' }= t('editor.file.video') .form-group{ data: { editor: { auxiliary: 'pdf' } } }