mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
Profile editing: Add notice in profile preferences (#38404)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user