From 4dc56479aecc58daf5432ebd12524ab72ebb03ee Mon Sep 17 00:00:00 2001 From: Kyrylo Petrov Date: Thu, 27 Mar 2025 14:14:47 +0200 Subject: [PATCH] chore(profile-settings): name ands social responsivness --- .../profile-settings.component.html | 62 ++++++++++++------- .../profile-settings.component.ts | 2 +- .../styles/overrides/input-group-addon.scss | 6 ++ src/assets/styles/overrides/input.scss | 8 +++ 4 files changed, 55 insertions(+), 23 deletions(-) diff --git a/src/app/features/settings/profile-settings/profile-settings.component.html b/src/app/features/settings/profile-settings/profile-settings.component.html index d01fe042c..6e60bf7a1 100644 --- a/src/app/features/settings/profile-settings/profile-settings.component.html +++ b/src/app/features/settings/profile-settings/profile-settings.component.html @@ -13,10 +13,10 @@ Education - + -
+

Your full name is the name that will be displayed in your profile. To control the way your name will appear in citations, you can use @@ -24,45 +24,61 @@

name, etc., or edit the fields directly below.

-
-
- +
+
+
-
+
-
-
- +
+
+
-
-
-
-
- +
+
+
-
- +
+
-
+

Citation Preview

-
+

Style:

@@ -109,7 +125,7 @@

Doe, John T.

) {

Social Link {{ index + 1 }}

@@ -122,8 +138,10 @@

Social Link {{ index + 1 }}

}
-
-
+
+

Social output

Social Link {{ index + 1 }} >
-
+

Web Address

{{ diff --git a/src/app/features/settings/profile-settings/profile-settings.component.ts b/src/app/features/settings/profile-settings/profile-settings.component.ts index 6a52effa7..917397434 100644 --- a/src/app/features/settings/profile-settings/profile-settings.component.ts +++ b/src/app/features/settings/profile-settings/profile-settings.component.ts @@ -51,7 +51,7 @@ export class ProfileSettingsComponent implements OnInit { }); ngOnInit(): void { - if (this.userSocialLinks.length) { + if (!this.userSocialLinks.length) { this.addLink(); } } diff --git a/src/assets/styles/overrides/input-group-addon.scss b/src/assets/styles/overrides/input-group-addon.scss index fce6d09ce..4c01a79ae 100644 --- a/src/assets/styles/overrides/input-group-addon.scss +++ b/src/assets/styles/overrides/input-group-addon.scss @@ -10,3 +10,9 @@ font-size: 16px; min-width: auto; } + +@media (max-width: 300px) { + .p-inputgroupaddon { + display: none; + } +} diff --git a/src/assets/styles/overrides/input.scss b/src/assets/styles/overrides/input.scss index e9f6e0cc1..8650e5e70 100644 --- a/src/assets/styles/overrides/input.scss +++ b/src/assets/styles/overrides/input.scss @@ -71,4 +71,12 @@ p-password.ng-touched.ng-invalid { border-top-left-radius: 0; border-left-style: none; } + + @media (max-width: 300px) { + .p-inputtext { + border: 1px solid var.$grey-2; + border-bottom-left-radius: 8px; + border-top-left-radius: 8px; + } + } }