Skip to content

Commit ebc35d4

Browse files
committed
Merge branch '5.0-trunk'
2 parents fd45306 + e251e33 commit ebc35d4

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

share/html/Elements/CollectionAsTable/Header

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ foreach my $col ( @Format ) {
262262
$field = "CustomField.{$name}";
263263
}
264264

265-
if ( $field ) {
265+
if ( $field && $filter_comp ) {
266266
my $tooltip = loc( 'Filter on [_1]', loc($field) );
267267
my $icon = exists $filter_data{filter}{$field} ? 'funnel-fill' : 'funnel';
268268
$icon = RT::Interface::Web::MenuBuilder::GetSVGImage($icon);

share/html/NoAuth/css/elevator/BeforeNav

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ jQuery(function() {
175175
jQuery(window).on('load', function () {
176176
// set the right position of #topactions based on the logo size to allow for custom logos.
177177
// 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(' + ') + ')';
180180

181181
rebalanceOverflowMenu('#main-navigation', '#li-overflow');
182182
rebalanceOverflowMenu('#page-navigation', '#li-page-overflow');

share/html/Search/Elements/PickBasics

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ elsif ( $Class eq 'RT::Assets' ) {
267267
Value => {
268268
Type => 'component',
269269
Path => '/Asset/Elements/SelectStatus',
270-
Arguments => { Catalogs => \%catalogs },
270+
Arguments => { Catalogs => \%catalogs, ShowActiveInactive => 1 },
271271
},
272272
},
273273
{

share/static/css/elevator/nav.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,10 @@
163163
#topactions {
164164
position: absolute;
165165
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);
167170
width: auto;
168171
font-size: 0.9em;
169172
z-index: 99;

0 commit comments

Comments
 (0)