File tree 4 files changed +8
-5
lines changed
Elements/CollectionAsTable
4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ foreach my $col ( @Format ) {
262
262
$field = "CustomField.{$name}";
263
263
}
264
264
265
- if ( $field ) {
265
+ if ( $field && $filter_comp ) {
266
266
my $tooltip = loc( 'Filter on [_1]', loc($field) );
267
267
my $icon = exists $filter_data{filter}{$field} ? 'funnel-fill' : 'funnel';
268
268
$icon = RT::Interface::Web::MenuBuilder::GetSVGImage($icon);
Original file line number Diff line number Diff line change @@ -175,8 +175,8 @@ jQuery(function() {
175
175
jQuery(window).on('load', function () {
176
176
// set the right position of #topactions based on the logo size to allow for custom logos.
177
177
// font size is calculated, to as close as possible, resemble setting in em instead of pixel.
178
- var font_size = parseFloat(jQuery('body').css('font-size') );
179
- jQuery ('#topactions').css('right', jQuery('# logo').width() + font_size + 'px') ;
178
+ const logo = document.querySelector('#logo' );
179
+ document.querySelector ('#topactions').style.right = 'calc(' + [logo.offsetWidth + 'px', window.getComputedStyle( logo).right, '1em'].join(' + ') + ')' ;
180
180
181
181
rebalanceOverflowMenu('#main-navigation', '#li-overflow');
182
182
rebalanceOverflowMenu('#page-navigation', '#li-page-overflow');
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ elsif ( $Class eq 'RT::Assets' ) {
267
267
Value => {
268
268
Type => 'component',
269
269
Path => '/Asset/Elements/SelectStatus',
270
- Arguments => { Catalogs => \%catalogs },
270
+ Arguments => { Catalogs => \%catalogs, ShowActiveInactive => 1 },
271
271
},
272
272
},
273
273
{
Original file line number Diff line number Diff line change 163
163
# topactions {
164
164
position : absolute;
165
165
top : 0 ;
166
- right : 18em ;
166
+ /* 238px is the logo's width,
167
+ * 2px is logo's "right" position,
168
+ * 1em is to add some space between logo and topactions */
169
+ right : calc (238px + 2px + 1em );
167
170
width : auto;
168
171
font-size : 0.9em ;
169
172
z-index : 99 ;
You can’t perform that action at this time.
0 commit comments