mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-28 05:49:32 +00:00
Implement sidebar collapse with stimulus.
This commit is contained in:
parent
ab179a8b71
commit
565cb3a790
5 changed files with 79 additions and 109 deletions
|
|
@ -82,9 +82,6 @@
|
|||
</div>
|
||||
|
||||
<div class="col-md-9 col-lg-10 offset-md-3 offset-lg-2 ps-0" id="main">
|
||||
<button class="btn btn-outline-dark btn-sm p-0" type="button" id="sidebar-toggle-button" title="{% trans %}sidebar.big.toggle{% endtrans %}">
|
||||
<i class="fas fa-angle-left"></i>
|
||||
</button>
|
||||
<div class="container-fluid me-0 pe-0" id="content-container">
|
||||
<turbo-frame id="content" data-turbo-action="advance">
|
||||
{# Here will be the real content be injected#}
|
||||
|
|
@ -112,6 +109,12 @@
|
|||
<i class="fas fa-angle-up fa-fw"></i>
|
||||
</button>
|
||||
|
||||
{# Must be outside of the sidebar or it will be hidden too #}
|
||||
<button class="btn btn-outline-dark btn-sm p-0" type="button" id="sidebar-toggle-button" title="{% trans %}sidebar.big.toggle{% endtrans %}"
|
||||
{{ stimulus_controller('common/hide_sidebar') }} {{ stimulus_action('common/hide_sidebar', 'toggleSidebar') }}>
|
||||
<i class="fas fa-angle-left"></i>
|
||||
</button>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue