mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
use sidebar-wrapper for styleing
This commit is contained in:
parent
f375ba96ae
commit
388b42a407
@ -74,8 +74,8 @@
|
|||||||
<div class='main body wrapper container-fluid inventree-body'>
|
<div class='main body wrapper container-fluid inventree-body'>
|
||||||
|
|
||||||
<div class='row flex-nowrap inventree-body'>
|
<div class='row flex-nowrap inventree-body'>
|
||||||
<div class='col-auto px-1 sidetree-wrapper' style='display: none;'>
|
<div class='col-auto px-1 sidebar-wrapper'>
|
||||||
<div id='sidetree' class='collapse collapse-horizontal show border-end' style='display: none;'>
|
<div id='sidetree' class='collapse collapse-horizontal show border' style='display: none;'>
|
||||||
{% block sidetree %}
|
{% block sidetree %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -181,10 +181,10 @@ function enableSidetree(label) {
|
|||||||
|
|
||||||
function setSidetreeState(label, state) {
|
function setSidetreeState(label, state) {
|
||||||
if (state == 'collapsed') {
|
if (state == 'collapsed') {
|
||||||
$('.sidetree-wrapper').hide(100);
|
$('#sidetree').hide(100);
|
||||||
$(`#sidetree-toggle-icon`).removeClass('fa-chevron-left').addClass('fa-chevron-right');
|
$(`#sidetree-toggle-icon`).removeClass('fa-chevron-left').addClass('fa-chevron-right');
|
||||||
} else {
|
} else {
|
||||||
$('.sidetree-wrapper').show(100);
|
$('#sidetree').show(100);
|
||||||
$(`#sidetree-toggle-icon`).removeClass('fa-chevron-right').addClass('fa-chevron-left');
|
$(`#sidetree-toggle-icon`).removeClass('fa-chevron-right').addClass('fa-chevron-left');
|
||||||
}
|
}
|
||||||
localStorage.setItem(`inventree-tree-state-${label}`, state);
|
localStorage.setItem(`inventree-tree-state-${label}`, state);
|
||||||
|
Loading…
Reference in New Issue
Block a user