Skip to content

Commit

Permalink
Merge pull request #1177 from creative-commoners/pulls/1.7/image-hist…
Browse files Browse the repository at this point in the history
…ory-preview

FIX Remove file history preview
  • Loading branch information
bergice authored May 4, 2021
2 parents 8682992 + 516a3b5 commit 46c0594
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/dist/styles/bundle.css

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions client/src/containers/HistoryList/HistoryList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
margin-top: calc(-#{$panel-padding-y} - 1px);
}

.form {
margin-left: 10px;
}

.editor__file-preview-link,
.editor__file-preview-message--file-missing {
max-width: 50%;
Expand Down
3 changes: 0 additions & 3 deletions code/Forms/FileHistoryFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ protected function getFormFields(RequestHandler $controller = null, $name, $cont
$record = $context['Record'];

$fields = new FieldList(
PreviewImageField::create('PreviewImage')
->setRecordID($record->ID)
->addExtraClass('editor__file-preview'),
LiteralField::create('FileSpecs', $this->getSpecsMarkup($record)),
ReadonlyField::create("Title", File::singleton()->fieldLabel('Title')),
ReadonlyField::create('Name', File::singleton()->fieldLabel('Filename')),
Expand Down

0 comments on commit 46c0594

Please sign in to comment.