Skip to content

Commit

Permalink
Fix editor swiper's width (#931)
Browse files Browse the repository at this point in the history
* Fix removing defined width on swiper's images (#836)

* Fix disable swiper's auto resize (#836)
  • Loading branch information
YassineHaouzane authored Feb 20, 2023
1 parent 393a08e commit 9b0d5b3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
4 changes: 0 additions & 4 deletions src/ocamlorg_frontend/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ body {
width: 2px;
}

.mySwiper2 {
width: 793px;
}

.codebox {
height: 462px;
}
Expand Down
23 changes: 11 additions & 12 deletions src/ocamlorg_frontend/pages/home.eml
Original file line number Diff line number Diff line change
Expand Up @@ -168,18 +168,16 @@ Layout.render
</div>
</div>
<div class="lg:flex-1 lg:mr-24 lg:mt-0 mt-10 flex justify-center">
<div class="xl:-ml-40">
<div style="--swiper-navigation-color: #fff;--swiper-pagination-color: #fff;" class="swiper mySwiper2">
<div class="swiper-wrapper">
<div class="swiper-slide">
<img width="785" src="/img/home/vscode-preview.png" alt="An OCaml program being edited in VSCode">
</div>
<div class="swiper-slide">
<img width="785" src="/img/home/vim-preview.png" alt="Writing an OCaml program using vim">
</div>
<div class="swiper-slide">
<img width="785" src="/img/home/emac-preview.png" alt="Writing an OCaml program using emacs">
</div>
<div style="--swiper-navigation-color: #fff;--swiper-pagination-color: #fff;" class="swiper mySwiper2">
<div class="swiper-wrapper">
<div class="swiper-slide">
<img src="/img/home/vscode-preview.png" alt="An OCaml program being edited in VSCode">
</div>
<div class="swiper-slide">
<img src="/img/home/vim-preview.png" alt="Writing an OCaml program using vim">
</div>
<div class="swiper-slide">
<img src="/img/home/emac-preview.png" alt="Writing an OCaml program using emacs">
</div>
</div>
</div>
Expand Down Expand Up @@ -427,6 +425,7 @@ Layout.render
var swiper2 = new Swiper(".mySwiper2", {
loop: true,
autoplay: { delay: 5000, disableOnInteraction: false, },
slidesPerView: 'auto',
spaceBetween: 10,
thumbs: {
swiper: swiper,
Expand Down

0 comments on commit 9b0d5b3

Please sign in to comment.