From d549b0288af68c54a82a4ccebfa5389ce2bee9e2 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Tue, 17 Jan 2017 08:57:17 -0800 Subject: adding admin UI fixes --- management/editor/editor.go | 7 ++----- system/admin/static/dashboard/css/admin.css | 3 ++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/management/editor/editor.go b/management/editor/editor.go index d1b169e..a9a8c82 100644 --- a/management/editor/editor.go +++ b/management/editor/editor.go @@ -150,14 +150,12 @@ func Form(post Editable, fields ...Field) ([]byte, error) { external = form.find('.post-controls.external'), id = form.find('input[name=id]'), timestamp = $('.__ponzu.content-only'), - slug = $('input[name=slug]'), - hiddenInput = $('input[type=hidden]'); + slug = $('input[name=slug]'); // hide if this is a new post, or a non-post editor page if (id.val() === '-1' || form.attr('action') !== '/admin/edit') { del.hide(); external.hide(); - hiddenInput.parent().filter('.input-field').hide() } // hide approval if not on a pending content item @@ -165,11 +163,10 @@ func Form(post Editable, fields ...Field) ([]byte, error) { external.hide(); } - // no timestamp, slug or hidden input parents visible on addons + // no timestamp, slug visible on addons if (form.attr('action') === '/admin/addon') { timestamp.hide(); slug.parent().hide(); - hiddenInput.parent().filter('.input-field').hide() } save.on('click', function(e) { diff --git a/system/admin/static/dashboard/css/admin.css b/system/admin/static/dashboard/css/admin.css index a977afb..204a4e9 100644 --- a/system/admin/static/dashboard/css/admin.css +++ b/system/admin/static/dashboard/css/admin.css @@ -242,8 +242,9 @@ tr.default-fields, tr.editor-fields { select { border: 1px solid #e2e2e2; + height: 2.5rem; } .note-editor * { max-width: 100%; -} \ No newline at end of file +} -- cgit v1.2.3