Fix horizontal scroll bug

This commit is contained in:
2024-03-14 01:27:47 +01:00
parent 249a9ae6b6
commit cc3a21b206
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -25,3 +25,9 @@
#template { #template {
margin-bottom: 10em; margin-bottom: 10em;
} }
@media (max-width: 768px) {
.columns.is-multiline {
max-width: 100%;
}
}
+2 -2
View File
@@ -28,7 +28,7 @@
</section> </section>
<hr> <hr>
<section> <section>
<div class="container is-max-widescreen" id="template" hx-boost hx-ext="client-side-templates" style="overflow-x: hidden;"> <div class="container is-max-widescreen" id="template" hx-boost hx-ext="client-side-templates">
<div <div
hx-get="http://localhost:1337/api/articles?populate=couverture" hx-get="http://localhost:1337/api/articles?populate=couverture"
hx-trigger="load" hx-trigger="load"
@@ -37,7 +37,7 @@
<p>Chargement...</p> <p>Chargement...</p>
</div> </div>
<script id="articles" type="x-tmpl-mustache"> <script id="articles" type="x-tmpl-mustache">
<div class="columns is-multiline p-5"> <div class="columns is-multiline p-3">
{{#data}} {{#data}}
<div class="column is-one-third"> <div class="column is-one-third">
<div class="card"> <div class="card">