More attachment type icons in the item tree (#3645)

This commit is contained in:
Tom Najdek 2024-02-23 12:11:40 +01:00 committed by GitHub
parent ae8cbdf3b7
commit b1333d0e9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
53 changed files with 309 additions and 45 deletions

View file

@ -203,6 +203,10 @@ $-itemTypesIcons: (
attachment-pdf,
attachment-snapshot,
attachment-web-link,
attachment-image,
attachment-image-link,
attachment-video,
attachment-video-link,
audio-recording,
bill,
blog-post,
@ -255,6 +259,9 @@ $-attachmentIcons: (
attachment-pdf,
attachment-snapshot,
attachment-web-link,
attachment-file,
attachment-image,
attachment-video
);
.icon-item-type {
@ -289,13 +296,6 @@ $-attachmentIcons: (
.icon-item-type[data-item-type=#{$itemType}] {
@include svgicon($itemTypeIcon, $color, "16", "item-type", true);
}
@if index($-attachmentIcons, $itemTypeIcon) != false {
.icon-attachment-type[data-item-type=#{$itemType}] {
@include svgicon($itemTypeIcon, $color, "12", "item-type", false);
background-origin: content-box;
}
}
}
}
@ -306,5 +306,13 @@ $-attachmentIcons: (
.virtualized-table .row {
@include focus-states using($color) {
@include -icon-item-type-rules($color);
@each $itemAttachmentIcon in $-attachmentIcons {
$itemType: camelCase(str-replace(str-replace($itemAttachmentIcon, "pdf", "PDF"), "epub", "EPUB"));
.icon-attachment-type[data-item-type=#{$itemType}] {
@include svgicon($itemAttachmentIcon, $color, "12", "item-type", false);
background-origin: content-box;
}
}
}
}