Skip to content

Commit b662157

Browse files
authored
Merge pull request #1961 from crazyserver/MOBILE-3039
MOBILE-3039 styles: Improve word wrapping and scroll styles
2 parents c5ad7b0 + 57ddf26 commit b662157

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/app/app.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ ion-app.app-root {
224224
/** Styles of elements inside the directive should be placed in format-text.scss */
225225
core-format-text {
226226
user-select: text;
227+
word-break: break-word;
228+
word-wrap: break-word;
227229

228230
&[maxHeight],
229231
&[ng-reflect-max-height] {
@@ -939,6 +941,12 @@ ion-app.app-root {
939941
pointer-events: initial;
940942
}
941943

944+
// Avoid scroll bouncing on iOS if disabled.
945+
&.disable-scroll .ion-page .content-ios .scroll-content::before,
946+
&.disable-scroll .ion-page .content-ios .scroll-content::after {
947+
content: none;
948+
}
949+
942950
.core-iframe-offline-disabled {
943951
display: none !important;
944952
}

src/components/download-refresh/download-refresh.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
ion-app.app-root core-download-refresh {
22
font-size: 1.4rem;
3+
display: flex;
4+
flex-flow: row;
5+
align-items: center;
6+
z-index: 1;
7+
justify-content: space-around;
8+
align-content: center;
9+
min-height: 44px;
310

411
button, ion-icon {
512
cursor: pointer;

0 commit comments

Comments
 (0)