Profile editing: Add notice in profile preferences (#38404)

This commit is contained in:
Echo
2026-03-26 12:03:40 +01:00
committed by GitHub
parent 5061f0b1cd
commit dd8602a928
3 changed files with 59 additions and 0 deletions

View File

@@ -442,6 +442,53 @@ $content-width: 840px;
}
}
}
.callout {
display: flex;
align-items: start;
padding: 12px;
gap: 8px;
background-color: var(--color-bg-brand-softest);
color: var(--color-text-primary);
border-radius: 12px;
font-size: 15px;
margin-bottom: 30px;
.icon {
padding: 4px;
border-radius: 9999px;
width: 1rem;
height: 1rem;
margin-top: -2px;
background-color: var(--color-bg-brand-soft);
}
.content {
display: flex;
flex-direction: column;
gap: 8px;
flex-grow: 1;
padding: 0;
@media screen and (width >= 630px) {
flex-direction: row;
}
}
.body {
flex-grow: 1;
}
.title {
font-weight: 600;
margin-bottom: 8px;
}
a {
color: inherit;
font-weight: 600;
}
}
}
hr.spacer {

View File

@@ -5,6 +5,15 @@
%h1= t('settings.profile')
= render partial: 'settings/shared/profile_navigation'
- if Mastodon::Feature.profile_redesign_enabled?
%aside.callout
= material_symbol 'info'
.content
.body
%p.title= t('edit_profile.redesign_title')
%p= t('edit_profile.redesign_body')
= link_to t('edit_profile.redesign_button'), '/profile/edit'
= simple_form_for @account, url: settings_profile_path, html: { id: :edit_profile } do |f|
= render 'shared/error_messages', object: @account

View File

@@ -1421,6 +1421,9 @@ en:
basic_information: Basic information
hint_html: "<strong>Customize what people see on your public profile and next to your posts.</strong> Other people are more likely to follow you back and interact with you when you have a filled out profile and a profile picture."
other: Other
redesign_body: Profile editing can now be accessed directly from the profile page.
redesign_button: Go there
redesign_title: Theres a new profile editing experience
email_subscription_mailer:
confirmation:
action: Confirm email address