From 782b07ec8002196920c53252ae817451f0b3ed07 Mon Sep 17 00:00:00 2001 From: Ryan O'Hara Date: Mon, 6 Aug 2012 17:55:04 +1200 Subject: [PATCH] MINOR: Adjust styling for gridfield showing where-else document is linked --- code/DMSDocument.php | 2 +- css/DMSDocumentCMSFields.css | 4 +++- scss/DMSDocumentCMSFields.scss | 11 ++++++++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/code/DMSDocument.php b/code/DMSDocument.php index c182579..cc0bfe0 100644 --- a/code/DMSDocument.php +++ b/code/DMSDocument.php @@ -472,7 +472,7 @@ class DMSDocument extends DataObject implements DMSDocumentInterface { $fields->add($UploadField); $fields->add($pagesGrid); $fields->add(FormAction::create('dod', _t('GridFieldDetailForm.Delete', 'Delete')) - ->addExtraClass('ss-ui-action-destructive')); //delete button + ->addExtraClass('ss-ui-action-destructive')); //delete button - move this to actions area above return $fields; diff --git a/css/DMSDocumentCMSFields.css b/css/DMSDocumentCMSFields.css index 248ba6f..21645ba 100644 --- a/css/DMSDocumentCMSFields.css +++ b/css/DMSDocumentCMSFields.css @@ -23,4 +23,6 @@ #ReplaceFile { display: none; } -.cms fieldset table.ss-gridfield-table { width: 900px; } +.cms fieldset table.ss-gridfield-table { width: auto; } +.cms fieldset table.ss-gridfield-table tr th.main { min-width: 200px; } +.cms fieldset table.ss-gridfield-table tr th.main.col-action_SetOrderID { width: 60px; min-width: 60px; } diff --git a/scss/DMSDocumentCMSFields.scss b/scss/DMSDocumentCMSFields.scss index e2b4859..bb2a3a6 100644 --- a/scss/DMSDocumentCMSFields.scss +++ b/scss/DMSDocumentCMSFields.scss @@ -90,7 +90,16 @@ $color-button-generic: #e6e6e6 !default; .cms{ fieldset{ table.ss-gridfield-table{ - width: 900px; + width: auto; + tr{ + th.main{ + min-width:200px; + &.col-action_SetOrderID{ + width:60px; + min-width:60px; + } + } + } } } } \ No newline at end of file