[Rt-commit] rt branch, 5.0/round-2-updates-for-mobile, updated. rt-5.0.0-176-g264e48a16c
Blaine Motsinger
blaine at bestpractical.com
Wed Dec 30 18:37:16 EST 2020
The branch, 5.0/round-2-updates-for-mobile has been updated
via 264e48a16c25bb386981ad4f4b19b364dec4a945 (commit)
from a02b01826fcc80c07143d093d5493eea23343b80 (commit)
Summary of changes:
share/html/Articles/Elements/CreateArticleButton | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 264e48a16c25bb386981ad4f4b19b364dec4a945
Author: Blaine Motsinger <blaine at bestpractical.com>
Date: Wed Dec 30 17:35:06 2020 -0600
Fix resizing quick create article button
The article quick create button in the article 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/Articles/Elements/CreateArticleButton b/share/html/Articles/Elements/CreateArticleButton
index 683b856a1f..fda21093c3 100644
--- a/share/html/Articles/Elements/CreateArticleButton
+++ b/share/html/Articles/Elements/CreateArticleButton
@@ -46,7 +46,18 @@
%#
%# END BPS TAGGED BLOCK }}}
<form action="<% RT->Config->Get('WebPath') %>/Articles/Article/PreCreate.html">
- <div class="create-article-button">
- <input type="submit" class="btn btn-primary article-create-modal" value="<&|/l&>Create new article</&>" />
- </div>
+
+% my $button_start = '<input type="submit" class="button btn btn-primary form-control article-create-modal" value="';
+% my $button_end = '" />';
+
+<div class="create-wide">
+<&|/l_unsafe, $button_start, $button_end &>[_1]Create new article[_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