-
-
-
-
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
{{siteUrl}}
@@ -25,29 +29,26 @@
{{ 'core.login.reconnectdescription' | translate }}
-
-
- {{ 'core.login.username' | translate }}
+
-
+
+
+
+
+
+
+
+
+ {{ 'core.login.cancel' | translate }}
+
+
+
+
+
+
+
diff --git a/src/core/login/pages/reconnect/reconnect.scss b/src/core/login/pages/reconnect/reconnect.scss
index a9bbabece..a28e78d05 100644
--- a/src/core/login/pages/reconnect/reconnect.scss
+++ b/src/core/login/pages/reconnect/reconnect.scss
@@ -2,8 +2,6 @@ ion-app.app-root page-core-login-reconnect {
.box {
.core-login-form .item {
background-color: $core-login-item-background-color;
- @include padding-horizontal(0);
-
@include darkmode() {
background-color: $core-dark-login-item-background-color;
}
@@ -14,20 +12,21 @@ ion-app.app-root page-core-login-reconnect {
@include darkmode() {
background-color: $core-dark-login-item-inner-background-color;
}
- @include padding-horizontal(0);
}
}
- .list .core-username {
- &.item {
- @include padding-horizontal(0);
- }
- .item-heading {
- margin-top: 0;
- }
+ form .core-username.item p {
+ @include padding-horizontal(8px);
+ font-size: 16px;
+ }
+ form .item:first-child {
+ margin-bottom: 20px;
+ }
- .item-inner {
- @include padding(null, null, null, 8px);
+ ion-col {
+ @include padding-horizontal(10px !important, 0);
+ &:first-child {
+ @include padding-horizontal(0 !important);
}
}
diff --git a/src/core/login/pages/reconnect/reconnect.ts b/src/core/login/pages/reconnect/reconnect.ts
index 58e24a078..afa776e21 100644
--- a/src/core/login/pages/reconnect/reconnect.ts
+++ b/src/core/login/pages/reconnect/reconnect.ts
@@ -37,6 +37,7 @@ export class CoreLoginReconnectPage {
identityProviders: any[];
site: any;
showForgottenPassword = true;
+ showSiteAvatar = false;
protected infoSiteUrl: string;
protected pageName: string;
@@ -88,11 +89,14 @@ export class CoreLoginReconnectPage {
this.siteUrl = site.infos.siteurl;
this.siteName = site.getSiteName();
+ // Show logo instead of avatar if it's a fixed site.
+ this.showSiteAvatar = this.site.avatar && !this.loginHelper.getFixedSites();
+
return site.getPublicConfig().then((config) => {
return this.sitesProvider.checkRequiredMinimumVersion(config).then(() => {
// Check logoURL if user avatar is not set.
if (this.site.avatar.startsWith(site.infos.siteurl + '/theme/image.php')) {
- this.site.avatar = false;
+ this.showSiteAvatar = false;
this.logoUrl = config.logourl || config.compactlogourl;
}