Skip to content

Commit

Permalink
#43 Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tdziezykDS committed Nov 15, 2023
1 parent d18774e commit 8b77a05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions blocks/v2-truck-features/v2-truck-features.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
.v2-truck-features__slide-image--active img {
display: flex;
height: 275px;
aspect-ratio: 375/275;
aspect-ratio: 800/740;
}

.v2-truck-features__text-wrapper {
Expand Down Expand Up @@ -160,13 +160,13 @@
#dfdfdf 89.49%
);
width: 50vw;
max-width: 720px;
max-width: 800px;
}

.v2-truck-features__slide-image--active picture,
.v2-truck-features__slide-image--active img {
width: 50vw;
max-width: 720px;
max-width: 800px;
height: auto;
}

Expand Down
2 changes: 1 addition & 1 deletion blocks/v2-truck-features/v2-truck-features.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getAllElWithChildren } from '../../scripts/scripts.js';

const blockName = 'v2-truck-features';
const desktopMQ = window.matchMedia('(min-width: 1200px)');
const SLIDE_SCROLL_PADDING_IN_PX = 100;
const SLIDE_SCROLL_PADDING_IN_PX = 200;

const selectImagesList = (slide) => {
const imagesLists = [...getAllElWithChildren(slide.querySelectorAll('ul'), ':scope > li > picture')];
Expand Down

0 comments on commit 8b77a05

Please sign in to comment.