Apply a generic thumbnail style to work package table cell

pull/7348/head
Wieland Lindenthal 5 years ago
parent ac9df34f5f
commit 91fa196759
  1. 5
      app/assets/stylesheets/content/work_packages/_table_content.sass
  2. 2
      frontend/src/app/modules/bcf/fields/display/bcf-thumbnail-field.module.ts

@ -154,7 +154,6 @@ body.-browser-edge
height: 22px !important
line-height: 22px !important
.inplace-editing--container
display: inline-block
border: 1px solid transparent
@ -162,8 +161,10 @@ body.-browser-edge
overflow: visible
width: 100%
// Special width rules for more or less fixed with fields
.wp-table--cell-td.startDate,
.wp-table--cell-td.dueDate
width: 160px
.wp-table--cell-td img.thumbnail
height: 40px

@ -36,7 +36,7 @@ export class BcfThumbnailDisplayField extends DisplayField {
if (_.get(this, 'resource.bcf.viewpoints[0]')) {
let vp = this.resource.bcf.viewpoints[0];
element.innerHTML = `
<img src="${this.pathHelper.attachmentDownloadPath(vp.id, vp.file_name)}" style="height: 40px;">
<img src="${this.pathHelper.attachmentDownloadPath(vp.id, vp.file_name)}" class="thumbnail">
`;
} else {
element.innerHTML = '';

Loading…
Cancel
Save