From edb1dc71ac0d94024c2a4d86cd0efd6f9ae24abd Mon Sep 17 00:00:00 2001
From: Dani Palou
Date: Wed, 19 Jan 2022 14:25:17 +0100
Subject: [PATCH] MOBILE-3794 sitepolicy: Make iframe bigger
---
.../login/pages/site-policy/site-policy.html | 6 ++---
.../login/pages/site-policy/site-policy.scss | 26 +++++++++++++++++++
.../login/pages/site-policy/site-policy.ts | 1 +
3 files changed, 30 insertions(+), 3 deletions(-)
create mode 100644 src/core/features/login/pages/site-policy/site-policy.scss
diff --git a/src/core/features/login/pages/site-policy/site-policy.html b/src/core/features/login/pages/site-policy/site-policy.html
index 0218d615b..d061ab406 100644
--- a/src/core/features/login/pages/site-policy/site-policy.html
+++ b/src/core/features/login/pages/site-policy/site-policy.html
@@ -24,13 +24,13 @@
-
+
-
+
{{ 'core.login.policyaccept' | translate }}
-
+
{{ 'core.login.cancel' | translate }}
diff --git a/src/core/features/login/pages/site-policy/site-policy.scss b/src/core/features/login/pages/site-policy/site-policy.scss
new file mode 100644
index 000000000..f54f35631
--- /dev/null
+++ b/src/core/features/login/pages/site-policy/site-policy.scss
@@ -0,0 +1,26 @@
+:host {
+ ion-list {
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+
+ ion-item {
+ flex-shrink: 0;
+ }
+
+ .core-site-policy-iframe-container {
+ height: 100%;
+
+ core-iframe {
+ height: 100%;
+ width: 100%;
+ }
+ }
+ }
+}
+
+:host core-loading ::ng-deep {
+ .core-loading-content {
+ height: 100%;
+ }
+}
diff --git a/src/core/features/login/pages/site-policy/site-policy.ts b/src/core/features/login/pages/site-policy/site-policy.ts
index 17aba15e3..180905155 100644
--- a/src/core/features/login/pages/site-policy/site-policy.ts
+++ b/src/core/features/login/pages/site-policy/site-policy.ts
@@ -29,6 +29,7 @@ import { CoreEvents } from '@singletons/events';
@Component({
selector: 'page-core-login-site-policy',
templateUrl: 'site-policy.html',
+ styleUrls: ['site-policy.scss'],
})
export class CoreLoginSitePolicyPage implements OnInit {