diff --git a/src/core/components/iframe/iframe.scss b/src/core/components/iframe/iframe.scss index bc8a94691..e71baa682 100644 --- a/src/core/components/iframe/iframe.scss +++ b/src/core/components/iframe/iframe.scss @@ -1,14 +1,5 @@ :host { - > div { - max-width: 100%; - max-height: 100%; - } - iframe { - border: 0; - display: block; - max-width: 100%; - background-color: var(--ion-background-color); - } + flex-grow: 1; } :host-context(.core-iframe-fullscreen) { @@ -21,3 +12,8 @@ height: 100%; z-index: 9999; } + +:host-context(.limited-width > :not([slot])) { + display: flex; + flex-direction: column; +} diff --git a/src/core/components/loading/loading.scss b/src/core/components/loading/loading.scss index 82ab20289..d6b31d067 100644 --- a/src/core/components/loading/loading.scss +++ b/src/core/components/loading/loading.scss @@ -93,4 +93,5 @@ :host-context(.limited-width > ):not([slot]) { --contents-display: flex; flex-direction: column; + min-height: 100%; } diff --git a/src/theme/theme.base.scss b/src/theme/theme.base.scss index ae32731e9..b10ac0d47 100644 --- a/src/theme/theme.base.scss +++ b/src/theme/theme.base.scss @@ -863,6 +863,7 @@ ion-content.limited-width > :not([slot]) { ion-content.limited-width > :not([slot]) { display: flex; flex-direction: column; + min-height: 100%; } ion-toolbar h1 img.core-bar-button-image, @@ -1500,6 +1501,7 @@ ion-content.disable-scroll-y::part(scroll) { } iframe { + flex-grow: 1; border: 0; display: block; max-width: 100%;