Skip to content

Commit

Permalink
Merge branch 'main' into profile-completion-formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
CamLamb committed Dec 9, 2024
2 parents be437b8 + 52f9ce9 commit d25abd3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/dw_design_system/dwds/layouts/content_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

&.small {
--sidebar-size: 150px;
--sidebar-min-size: 66%;
}
}

Expand Down
6 changes: 5 additions & 1 deletion src/dw_design_system/dwds/utils.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
user-select: none;
}

.dwds-email-wrap {
overflow-wrap: anywhere;
}

.dwds-title-question {
align-self: center;
}
}
7 changes: 5 additions & 2 deletions src/peoplefinder/templates/peoplefinder/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,16 @@ <h1 class="text-large" data-testid="full-name">{{ profile.full_name }}</h1>
{% if profile.contact_email %}
<div class="content-with-icon min-gap">
{% include "dwds/icons/email.html" with extra_classes="small" %}
<a href="mailto:{{ profile.contact_email }}"
<a class="dwds-email-wrap"
href="mailto:{{ profile.contact_email }}"
data-testid="preferred-email">{{ profile.contact_email }}</a>
</div>
{% else %}
<div class="content-with-icon min-gap">
{% include "dwds/icons/email.html" with extra_classes="small" %}
<a href="mailto:{{ profile.email }}" data-testid="preferred-email">{{ profile.email }}</a>
<a class="dwds-email-wrap"
href="mailto:{{ profile.email }}"
data-testid="preferred-email">{{ profile.email }}</a>
</div>
{% endif %}

Expand Down
3 changes: 0 additions & 3 deletions src/peoplefinder/views/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,6 @@ def get_context_data(self, **kwargs: dict) -> dict:
"edited_or_confirmed_at",
]

# ProfileSections("skills") -> ProfileSections.SKILLS: ProfileSections()
# current_profile_section.value -> skills
# current_profile_section.label -> Skills
profile_section_dicts = []
for profile_section in ProfileSections:
profile_url = reverse("profile-view", kwargs={"profile_slug": profile.slug})
Expand Down

0 comments on commit d25abd3

Please sign in to comment.