From bdaf3f16044cee2bf90fe3e9904aaf05d2260627 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 17 Nov 2020 19:03:32 -0300 Subject: [PATCH] gui del editor --- app/views/posts/attributes/_content.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/posts/attributes/_content.haml b/app/views/posts/attributes/_content.haml index 5300f284..b4d1ad2a 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' } } }