Skip to content

Commit 43b92c7

Browse files
tweak css
1 parent 36ecbc7 commit 43b92c7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

example/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ export default {
7070
7171
.slider.-small .items{
7272
height: 100px;
73-
width: 100px;
73+
/* width: 100px; */
7474
}
7575
.slider.-big .items{
7676
height: 200px;
77-
width: 200px;
77+
/* width: 200px; */
7878
}
7979
8080
</style>

src/Slider.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export default {
120120
style: {
121121
position: 'relative',
122122
height: `${this.viewportSize.height}px`,
123-
width: `${this.viewportSize.width}px`
123+
width: this.orientation === 'horizontal' ? `${this.viewportSize.width}px` : undefined
124124
}
125125
},
126126
[

src/TransformContainer.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export default {
3232
class: 'viewport',
3333
style: {
3434
width: '100%',
35+
height: '100%',
3536
position: 'relative',
3637
overflow: 'hidden'
3738
},

0 commit comments

Comments
 (0)