diff options
| -rw-r--r-- | backend/templates/components.html | 4 | ||||
| -rw-r--r-- | frontend/index.ts | 2 | ||||
| -rw-r--r-- | frontend/scss/home.scss | 3 |
3 files changed, 4 insertions, 5 deletions
diff --git a/backend/templates/components.html b/backend/templates/components.html index adafacf..ec59158 100644 --- a/backend/templates/components.html +++ b/backend/templates/components.html @@ -14,11 +14,11 @@ {{ end }} {{ if ne .PagesNumber 1 }} <div class="pagination"> - <div> + <nav> {{ if ne .CurrentPage 1 }}<a href="?page={{ before .CurrentPage }}">Précédent</a>{{else}}<p></p>{{end}} <p>{{ .CurrentPage }}/{{ .PagesNumber }}</p> {{ if ne .CurrentPage .PagesNumber }}<a href="?page={{ next .CurrentPage }}">Suivant</a>{{else}}<p></p>{{end}} - </div> + </nav> </div> {{ end }} </article> diff --git a/frontend/index.ts b/frontend/index.ts index cd3c455..316caaf 100644 --- a/frontend/index.ts +++ b/frontend/index.ts @@ -10,7 +10,7 @@ function setupAnchors() { e.setAttribute("hx-get", e.href) e.setAttribute("hx-trigger", "click") e.setAttribute("hx-target", "#content") - e.setAttribute("hx-swap", "outerHTML show:top") + e.setAttribute("hx-swap", "outerHTML show:body:top") htmx.process(e) }); } diff --git a/frontend/scss/home.scss b/frontend/scss/home.scss index 0b85b2b..6fa4192 100644 --- a/frontend/scss/home.scss +++ b/frontend/scss/home.scss @@ -14,8 +14,7 @@ article article { align-items: center; justify-content: center; - - & > div { + & nav { display: inline-grid; grid-template-columns: 2fr 1fr 2fr; justify-content: center; |
