xiaoxiaobai5724 Is it possible to add a custom navigation bar feature that allows admins to customize the location of the navigation bar
This extension only adds a mobile tab bar at the bottom on mobile devices. If I understood you correctly, managing other navigation bars isn't the task of this particular extension.
xiaoxiaobai5724 and customize each function button of the navigation bar themselves
Create a proposition in theProposals Bounty tags and probably that when enough funds are collected, someone (or I) will make a PR to this extension when they find some time.
Not all buttons will be simple links, and some will be interactive components (like the current notifications with a counter or the login/profile button). These will require JavaScript logic to function. So, in the case of interactive components, they could be pre-built into the mobile-tab extension, allowing them to be added, removed, or rearranged as needed. However, if new interactive components are required, they would need to be developed separately.
User31 TeamF Add this custom CSS (LESS):
@media @phone {
.App {
padding-bottom: var(--mobile-tab-height);
}
}
Or if you want more space (replace 16px
with your own value):
@media @phone {
.App {
padding-bottom: ~"calc(var(--mobile-tab-height) + 16px)";
}
}
@media @phone {}
will apply CSS only on the phone.
Here are other available media variables in Flarum:
flarum/frameworkblob/8415d2233e1605d8ea169f9eff78aba14793a829/framework/core/less/common/variables.less#L136-L152