Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Post your ideas & suggestions for new nuBuilder features or other improvements
nc07
Posts: 118 Joined: Tue Jun 04, 2019 4:05 am
Has thanked: 5 times
Been thanked: 22 times
Unread post
by nc07 » Thu Sep 14, 2023 11:13 pm
Hi Kevin,
I tested it and works well when function is called
Code: Select all
$(document).ready(function() {
nuTransformSearchBox();
});
without it the layout is similar to what you have experienced.
let me know if the issue is still there.
layout should look like this now
captures_chrome-capture-2023-8-15.png
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4292 Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:
Unread post
by kev1n » Fri Sep 15, 2023 2:28 pm
On edit forms the dev buttons still appear as shown on my screenshot above.
nc07
Posts: 118 Joined: Tue Jun 04, 2019 4:05 am
Has thanked: 5 times
Been thanked: 22 times
Unread post
by nc07 » Fri Sep 15, 2023 11:15 pm
Not tested,
Try setting
Code: Select all
.adminButtonGroup{
Display:flex;
flex-direction: row;
padding: 2px;
height: 15px;
}
Also check in html if the above group is created.
kev1n
nuBuilder Team
Posts: 4292 Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:
Unread post
by kev1n » Sat Sep 16, 2023 4:32 am
These 2 CSS classes, .actionButtonGroup and .adminButtonGroup, appear to be custom styles and are not part of nuBuilder's core code.
Can you clarify how these classes are applied and assigned? Thanks!
Code: Select all
.actionButtonGroup {
display: flex;
align - items: baseline;
}
.adminButtonGroup {
Display: flex;
flex - direction: row;
padding: 2 px;
height: 15 px;
}
nc07
Posts: 118 Joined: Tue Jun 04, 2019 4:05 am
Has thanked: 5 times
Been thanked: 22 times
Unread post
by nc07 » Sat Sep 16, 2023 6:26 am
Those two classes are created with the updated nuTransformSearchBox() i posted in the earlier. It is used for grouping admin buttons and action buttons separately to enable the layout you requested.
Code: Select all
function nuTransformSearchBox() {
$('#nuSearchField,#nuSearchButton,#nuFilter').wrapAll('<div id="nuSeachCombo"></div>');
$('.nuAdminButton').wrapAll('<div class="adminButtonGroup"></div>');
$('.nuActionButton, #nuSeachCombo').not('.nuAdminButton').not('#nuPreviewButton').not('#nuSearchButton').not('span').wrapAll('<div class="actionButtonGroup"></div>');
$('#nuSearchField')
.attr('placeholder', 'Search')
.focus();
}
kev1n
nuBuilder Team
Posts: 4292 Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:
Unread post
by kev1n » Tue Sep 19, 2023 12:34 am
As JavaScript is executed after the form has already been rendered, it causes noticeable "flickering".
I'm wondering if we could get rid of that.
Video_2023-09-19_003041.gif
You do not have the required permissions to view the files attached to this post.
nc07
Posts: 118 Joined: Tue Jun 04, 2019 4:05 am
Has thanked: 5 times
Been thanked: 22 times
Unread post
by nc07 » Tue Sep 19, 2023 12:59 am
Thanks Kevin, that's optional for anyone to use and may not necessary need be part of NB.