[Rt-commit] rt branch, 4.6/restrict-width-search-refresh-dropdown, created. rt-4.4.4-540-g409087e2f9
Aaron Trevena
ast at bestpractical.com
Tue Jan 21 08:16:31 EST 2020
The branch, 4.6/restrict-width-search-refresh-dropdown has been created
at 409087e2f97a23eb7164fc1229a9ccb84bce920f (commit)
- Log -----------------------------------------------------------------
commit 409087e2f97a23eb7164fc1229a9ccb84bce920f
Author: Aaron Trevena <ast at bestpractical.com>
Date: Thu Nov 28 16:06:08 2019 +0000
Restrict width of refresh dropdown in search results
Add new autowidth-select css class and update refresh form control to use it
Remove bootstrap layout divs so that submit button is now alongside
diff --git a/share/html/Elements/Refresh b/share/html/Elements/Refresh
index 3ca712261e..27dd89b1a4 100644
--- a/share/html/Elements/Refresh
+++ b/share/html/Elements/Refresh
@@ -45,7 +45,7 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<select name="<%$Name%>" class="selectpicker form-control refresh">
+<select name="<%$Name%>" class="autowidth-select selectpicker form-control">
<option value="-1"
%unless ($Default) {
selected="selected"
diff --git a/share/html/Search/Results.html b/share/html/Search/Results.html
index be50ecdea1..c9fad14da9 100644
--- a/share/html/Search/Results.html
+++ b/share/html/Search/Results.html
@@ -80,24 +80,20 @@
% $m->callback( ARGSRef => \%ARGS, CallbackName => 'AfterResults' );
% my %hiddens = (Query => $Query, Format => $Format, Rows => $Rows, OrderBy => $OrderBy, Order => $Order, HideResults => $HideResults, Page => $Page, SavedChartSearchId => $SavedChartSearchId );
-<div align="right" class="refresh">
+<div class="refresh">
<form method="get" action="<%RT->Config->Get('WebPath')%>/Search/Results.html">
% foreach my $key (keys(%hiddens)) {
<input type="hidden" class="hidden" name="<%$key%>" value="<% defined($hiddens{$key})?$hiddens{$key}:'' %>" />
% }
<& /Elements/Refresh, Name => 'TicketsRefreshInterval', Default => $session{'tickets_refresh_interval'}||RT->Config->Get('SearchResultsRefreshInterval', $session{'CurrentUser'}) &>
-<div class="form-row">
- <div class="col-md-12">
- <input type="submit" class="button btn btn-primary form-control" value="<&|/l&>Change</&>" />
- </div>
-</div>
+<input type="submit" class="button btn btn-primary form-control" value="<&|/l&>Change</&>" />
</form>
</div>
%# Keyboard shortcuts info
<div class="clear"></div>
<div class="keyboard-shortcuts footer">
- <p><&|/l_unsafe, '<span class="keyboard-shortcuts-key">?</span>' &>Press [_1] to view keyboard shortcuts.</&></p>
+ <&|/l_unsafe, '<span class="keyboard-shortcuts-key">?</span>' &>Press [_1] to view keyboard shortcuts.</&>
</div>
<%INIT>
diff --git a/share/static/css/elevator-light/layout.css b/share/static/css/elevator-light/layout.css
index f629171c55..c00bc7fe8d 100644
--- a/share/static/css/elevator-light/layout.css
+++ b/share/static/css/elevator-light/layout.css
@@ -66,6 +66,13 @@ div#footer #bpscredits {
padding-top: 2.5em;
}
+div.refresh {
+ padding-left: 0px;
+ padding-right: 0px;
+ padding-bottom: 10px;
+ align: left;
+}
+
div#footer a {
color: white;
}
@@ -193,3 +200,8 @@ ol ol {
position: relative;
padding-bottom: 5em;
}
+
+/* over-ride fullwidth bootstrap select box/div size to auto */
+.autowidth-select {
+ width: auto !important;
+}
-----------------------------------------------------------------------
More information about the rt-commit
mailing list