Merge pull request #1398 from crazyserver/MOBILE-2464

Mobile 2464
main
Juan Leyva 2018-07-05 16:02:40 +02:00 committed by GitHub
commit b728b2af84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 3 deletions

View File

@ -268,6 +268,7 @@ core-format-text[ng-reflect-single-line="true"] {
.core-media-adapt-width { .core-media-adapt-width {
max-width: 100%; max-width: 100%;
height: auto;
} }
audio.core-media-adapt-width { audio.core-media-adapt-width {
@ -341,7 +342,7 @@ core-format-text {
// Images in ion-card have width 100% and display block. Remove that when the image is in core-format-text. // Images in ion-card have width 100% and display block. Remove that when the image is in core-format-text.
ion-card core-format-text img { ion-card core-format-text img {
width: initial; width: min-content;
display: inline; display: inline;
} }

View File

@ -27,6 +27,17 @@ core-course-format {
width: 100%; width: 100%;
} }
} }
.item-divider {
.label {
margin-top: 0;
margin-bottom: 0;
}
core-format-text {
line-height: 44px;
}
}
} }
.core-section-select { .core-section-select {

View File

@ -9,6 +9,8 @@
</ion-buttons> </ion-buttons>
</ion-navbar> </ion-navbar>
</ion-header> </ion-header>
<ion-content padding> <ion-content>
<img [src]="image" alt="{{ title }}" core-external-content [component]="component" [componentId]="componentId"> <ion-scroll zoom="true" maxZoom="2" class="core-zoom-pane" scrollX="true" scrollY="true">
<img [src]="image" [alt]="title" core-external-content [component]="component" [componentId]="componentId">
</ion-scroll>
</ion-content> </ion-content>

View File

@ -0,0 +1,7 @@
.core-zoom-pane {
height: 100%;
img {
max-width: none;
}
}