WSL/SLF GitLab Repository

Skip to content

Fix broken file icons

pooleben requested to merge bug/187115583-file-icon-broken into develop

Refactored image handling:

  • Unified code to a single "factory"
  • No longer uses store
  • Using the Vite glob import instead of the webpack context
  • Simpler and more automated way of choosing image format

Fixed displaying of correct file icon:

  • Created ease of use functionality for getting a file icon
  • Extended detection of media formats
  • Removed redundant and stale code and moved it all to the image "factory"
  • ResourceCard as well as EditResource now show the correct type icon

Fixed listing in ResourceCard:

  • Removed all unused code in BaseIconLabelView
  • Simplified Existing code using only the DOM elements necessary
  • No huge gaps between icon and text
  • Does not take up rest of space so hovering over empty space won't trigger tooltip anymore
  • Combined display of "file" size and type
  • No longer refer to resource as file

Merge request reports

Loading