Skip to content

Commit

Permalink
Merge pull request #37 from uploadcare/fix/unsplash-splide
Browse files Browse the repository at this point in the history
fix(js-custom-tab): revert back original splide classes
  • Loading branch information
nd0ut authored Oct 3, 2024
2 parents 54cc7a4 + 2c19c31 commit fd07f59
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
5 changes: 2 additions & 3 deletions examples/js-custom-tab/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/js-custom-tab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"preview": "vite preview"
},
"devDependencies": {
"@splidejs/splide": "4.1.4",
"postcss-import": "15.1.0",
"vite": "4.5.2"
},
"dependencies": {
"@splidejs/splide": "4.1.4",
"@uploadcare/file-uploader": "^1.2.0"
}
}
6 changes: 3 additions & 3 deletions examples/js-custom-tab/src/UnsplashSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ export class UnsplashSource extends UploaderBlock {
</button>
</uc-activity-header>
<div class="uc-content">
<div ref="slider" class="uc-splide">
<div class="uc-splide__track">
<ul class="uc-splide__list"></ul>
<div ref="slider" class="splide">
<div class="splide__track">
<ul class="splide__list"></ul>
</div>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions examples/js-custom-tab/src/unsplash-source.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,22 @@ uc-unsplash-source .uc-image-slider img {
flex: 0 0 100%;
}

uc-unsplash-source .uc-splide {
uc-unsplash-source .splide {
width: 100%;
}

uc-unsplash-source .uc-splide__track {
uc-unsplash-source .splide__track {
height: 100%;
}

uc-unsplash-source .uc-splide__slide {
uc-unsplash-source .splide__slide {
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}

uc-unsplash-source .uc-splide__slide img {
uc-unsplash-source .splide__slide img {
height: 100%;
object-fit: cover;
flex: 0 1 100%;
Expand Down

0 comments on commit fd07f59

Please sign in to comment.