better tab style

This commit is contained in:
imperosol
2024-12-01 18:14:09 +01:00
parent 04b4b34bfe
commit 1c79c25262
2 changed files with 30 additions and 20 deletions

View File

@ -303,7 +303,7 @@
{% endwith %}
#}
<div
class="tabs"
class="tabs shadow"
x-data="{selected: '{{ tab_list[0][0] }}'}"
x-modelable="selected"
{{ attrs }}
@ -319,9 +319,9 @@
</button>
{% endfor %}
</div>
<div class="tab-content shadow">
<div class="tab-content">
{% for title, content in tab_list %}
<section x-show="selected === '{{ title }}'" class="">
<section x-show="selected === '{{ title }}'">
{{ content }}
</section>
{% endfor %}