Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 82bdb3f

Browse files
fix(#8): center correctly the slides on iOS
1 parent 6c3621f commit 82bdb3f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/components/deck/deckdeckgo-deck/deckdeckgo-deck.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ div.deckgo-deck {
33

44
position: fixed;
55
top: 0;
6+
bottom: 0;
67

78
--transformX: 0px;
89
--transformXDuration: 0ms;

src/components/slides/deckdeckgo-slides.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
:host {
22
background: var(--background);
33
color: var(--color);
4+
height: 100%;
45
}
56

67
div.deckgo-slide {
@@ -10,7 +11,7 @@ div.deckgo-slide {
1011
padding: var(--slide-padding-top, 16px) var(--slide-padding-end, 32px) var(--slide-padding-bottom, 16px) var(--slide-padding-start, 32px);
1112

1213
width: calc(100vw - var(--slide-padding-start, 32px) - var(--slide-padding-end, 32px));
13-
height: 100vh;
14+
height: calc(100% - var(--slide-padding-top, 16px) - var(--slide-padding-bottom, 16px));
1415

1516
// Don't allow text selection
1617
-webkit-touch-callout: none; /* iOS Safari */

0 commit comments

Comments
 (0)