Skip to content
Snippets Groups Projects
Verified Commit 7aee3e44 authored by David Beniamine's avatar David Beniamine
Browse files

More robust category name and capitalization in CSS

parent e903e115
No related branches found
No related tags found
1 merge request!61156 mosaic view filter
Pipeline #836 passed
...@@ -352,6 +352,9 @@ html, body { ...@@ -352,6 +352,9 @@ html, body {
.mosaic_filter_disabled>h2:after { .mosaic_filter_disabled>h2:after {
background-image: url('images/icn-menu-filter.png'); background-image: url('images/icn-menu-filter.png');
} }
.mosaic_filter_item>h2, .mosaic_category h2 {
text-transform: capitalize;
}
.mosaic_filter_item:not(.mosaic_filter_disabled)>h2:after{ .mosaic_filter_item:not(.mosaic_filter_disabled)>h2:after{
background-image: url('images/icn-menu-preview.png'); background-image: url('images/icn-menu-preview.png');
......
...@@ -338,11 +338,8 @@ Sorting.prototype.getCategory = function(tag) { ...@@ -338,11 +338,8 @@ Sorting.prototype.getCategory = function(tag) {
} }
Sorting.prototype.getCategoryName = function(metadata) { Sorting.prototype.getCategoryName = function(metadata) {
if ('_rekall/link' === metadata) {
return 'Link';
}
if ('_rekall/marker' === metadata) { if ('_rekall/marker' === metadata) {
return 'Note'; return 'note';
} }
return metadata.substr(7).toUpperCase(); return metadata.split("/").pop().split('.').pop();
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment