Commit fd229a59 authored by ufku's avatar ufku
Browse files

Issue #2907354: Revised thumbnail implementation.

Removed image style definition.
Moved style config into profile form as a select field with available styles.
Used icon element as the thumbnail wrapper
parent 5aae6c37
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ conf:
  maxwidth: 0
  maxheight: 0
  replace: 0
  thumbnail_style: ''
  folders:
    -
      path: '.'
+1 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ conf:
  maxwidth: 1024
  maxheight: 1024
  replace: 0
  thumbnail_style: ''
  folders:
    -
      path: 'users/user[user:uid]'
+0 −13
Original line number Diff line number Diff line
langcode: en
status: true
dependencies: {  }
name: imce_thumbnail
label: 'IMCE Thumbnail'
effects:
  7d956f61-2352-4592-af00-880a8a56f187:
    uuid: 7d956f61-2352-4592-af00-880a8a56f187
    id: image_scale_and_crop
    weight: 1
    data:
      width: 100
      height: 100
+4 −0
Original line number Diff line number Diff line
@@ -62,6 +62,10 @@ imce.profile_conf.replace:
  type: integer
  label: 'Upload replace method'

imce.profile_conf.thumbnail_style:
  type: string
  label: 'Thumbnail style'

imce.profile_conf.folders:
  type: sequence
  label: 'Folders'
+3 −12
Original line number Diff line number Diff line
@@ -220,12 +220,10 @@
  border: 1px solid #adadad;
  border-radius: 1px;
  margin-bottom: 3px;
  padding: 1px;
  color: #585858;
}
.expanded > .imce-branch-toggle:before {
  content: '-';
  padding: 0px 1px;
}
.leaf > .imce-branch-toggle:before,
.busy > .imce-branch-toggle::before {
@@ -292,16 +290,6 @@
  text-align: right;
}

img#img-thumb {
  width: 100px;
  height: 100px;
  display: none;
}

.imce-item-thumbnail {
  float: left;
}

/* Item icon */
.imce-item-icon {
  float: left;
@@ -336,6 +324,9 @@ img#img-thumb {
.imce-item-icon:before {
  content: "\e601";
}
.imce-item-thumbnail:before {
  display: none !important;
}
.folder > .imce-item-icon:before {
  content: "\e609";
  color: #666;
Loading