mirror of
https://github.com/mastodon/mastodon.git
synced 2024-10-04 07:02:01 +00:00
Adjust alignment of "recommended" form badges
This commit is contained in:
parent
9d664f87a0
commit
dfa72c0086
|
@ -110,6 +110,12 @@ code {
|
|||
color: $primary-text-color;
|
||||
display: block;
|
||||
width: auto;
|
||||
|
||||
&.boolean {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
|
||||
.label_input,
|
||||
|
@ -141,7 +147,6 @@ code {
|
|||
.overridden,
|
||||
.recommended,
|
||||
.not_recommended {
|
||||
position: absolute;
|
||||
margin: 0 4px;
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ module RecommendedComponent
|
|||
return unless options[:recommended]
|
||||
|
||||
key = options[:recommended].is_a?(Symbol) ? options[:recommended] : :recommended
|
||||
options[:label_text] = ->(raw_label_text, _required_label_text, _label_present) { safe_join([raw_label_text, ' ', content_tag(:span, I18n.t(key, scope: 'simple_form'), class: key)]) }
|
||||
options[:label_text] = ->(raw_label_text, _required_label_text, _label_present) { safe_join([tag.span(raw_label_text), tag.span(I18n.t(key, scope: 'simple_form'), class: key)]) }
|
||||
|
||||
nil
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user