- modal backdrop, pas de backdrop, pas de problème...
This commit is contained in:
Jérémy Guillot
2024-06-10 15:25:06 +02:00
parent c46e1a0a5c
commit 0455ab40d9
5 changed files with 69 additions and 12 deletions

View File

@@ -5,9 +5,10 @@
id: id ? id : false,
}) }}
data-controller="bootstrap-modal"
data-bs-backdrop="false"
>
<div class="fixed top-0 left-0 w-full h-full outline-none" tabindex="-1" role="dialog">
<div class="modal-dialog relative w-auto pointer-events-none max-w-lg my-8 mx-auto px-4 sm:px-0"
<div class="modal-dialog mt-44 relative w-auto pointer-events-none max-w-lg my-8 mx-auto px-4 sm:px-0"
role="document">
<div class="relative flex flex-col w-full pointer-events-auto bg-white border border-gray-300 rounded-sm">
<div class="flex items-start justify-between p-4 border-b border-gray-300 rounded-t">

View File

@@ -97,9 +97,9 @@
<tbody>
{% for chapter in chapters %}
<tr class="border-t hover:bg-green-100">
{% if chapter.pages|length > 0 %}
{% if chapter.pagesLink|length > 0 %}
<td class="px-4 py-2 text-green-500">
<a href="{{ path('read_chapter_page', { mangaSlug: manga.slug, chapterNumber: chapter.number }) }}">
<a href="{{ path('read_chapter_page', { mangaSlug: manga.slug, chapterNumber: chapter.number, pageNumber: 1 }) }}">
{{ chapter.number }}</a>
</td>
{% else %}
@@ -107,7 +107,7 @@
{% endif %}
<td class="px-4 py-2 w-full text-left">
{% if chapter.pages|length > 0 %}
{% if chapter.pagesLink|length > 0 %}
<a class=""
href="{{ path('read_chapter_page', { mangaSlug: manga.slug, chapterNumber: chapter.number }) }}">{{ chapter.title ?? 'No title' }}</a>
{% else %}