From 3a85433249392b41783e940c393e3ec7fa5391ce Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 25 Mar 2017 15:32:10 -0700 Subject: [PATCH] Page/Menu Overview column widths --- e107_admin/cpage.php | 13 +++++++++++-- e107_themes/bootstrap3/admin_style.css | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/e107_admin/cpage.php b/e107_admin/cpage.php index f78e9af1d..6723d39bd 100644 --- a/e107_admin/cpage.php +++ b/e107_admin/cpage.php @@ -638,20 +638,29 @@ class page_admin_ui extends e_admin_ui $this->sortField = false; $this->fields['menu_title']['width'] = 'auto'; + $this->fields['menu_image']['readParms'] = 'thumb=60x55'; + $this->fields['menu_image']['width'] = 'auto'; $this->fields['page_title']['width'] = 'auto'; $this->fields['options']['type'] = 'method'; - foreach($this->fields as $k=>$fld) + foreach($this->fieldpref as $k) { $this->fields[$k]['nolist'] = false; + if($k === 'page_id') + { + continue; + } + if(strpos($k,'menu_') === 0) { - $this->fields[$k]['class'] = 'menu-field '.$fld['class']; + $this->fields[$k]['class'] = 'menu-field '.$this->fields[$k]['class']; } + + $this->fields[$k]['width'] = '13%'; } } diff --git a/e107_themes/bootstrap3/admin_style.css b/e107_themes/bootstrap3/admin_style.css index 67d429a19..ab3893018 100644 --- a/e107_themes/bootstrap3/admin_style.css +++ b/e107_themes/bootstrap3/admin_style.css @@ -1549,7 +1549,7 @@ body#admin-menus #sc-admin-help .panel-body { .e-image-preview { display:inline-block } - +td img.thumbnail { margin-bottom:0 }