[Rt-commit] rt branch, 5.0/round-2-updates-for-mobile, updated. rt-5.0.0-174-ge6a41c8759

Blaine Motsinger blaine at bestpractical.com
Wed Dec 30 15:28:00 EST 2020


The branch, 5.0/round-2-updates-for-mobile has been updated
       via  e6a41c8759ce8a03b2c45ab55e9e5eb35d247fe9 (commit)
      from  eead0bbccf57829093613b8940fd81a1437fc5d0 (commit)

Summary of changes:
 share/html/Asset/Elements/CreateAsset | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit e6a41c8759ce8a03b2c45ab55e9e5eb35d247fe9
Author: Blaine Motsinger <blaine at bestpractical.com>
Date:   Wed Dec 30 14:23:29 2020 -0600

    Fix resizing quick create asset button
    
    The asset quick create button in the asset main navigation was not
    correctly resizing for mobile layout or smaller window sizes.
    This commit fixes the button to correctly resize within the main
    navigation and match functionality of ticket quick create.

diff --git a/share/html/Asset/Elements/CreateAsset b/share/html/Asset/Elements/CreateAsset
index 7e8f2f509d..a99b56ac7a 100644
--- a/share/html/Asset/Elements/CreateAsset
+++ b/share/html/Asset/Elements/CreateAsset
@@ -46,7 +46,18 @@
 %#
 %# END BPS TAGGED BLOCK }}}
 <form action="<% RT->Config->Get('WebPath') %>/Asset/Create.html">
-  <div class="create-asset-button">
-    <input type="submit" class="btn btn-primary" value="<&|/l&>Create new asset</&>" />
-  </div>
+
+% my $button_start = '<input type="submit" class="button btn btn-primary form-control" value="';
+% my $button_end = '" />';
+
+<div class="create-wide">
+<&|/l_unsafe, $button_start, $button_end &>[_1]Create new asset[_2]</&>
+</div>
+<div class="create-medium">
+<&|/l_unsafe, $button_start, $button_end &>[_1]Create[_2]</&>
+</div>
+<div class="create-narrow">
+<&|/l_unsafe, $button_start, $button_end &>[_1]+[_2]</&>
+</div>
+
 </form>

-----------------------------------------------------------------------


More information about the rt-commit mailing list