Use radio buttons for emoji style preference (#39126)

This commit is contained in:
diondiondion
2026-05-21 18:55:28 +02:00
committed by GitHub
parent cdf721a273
commit 15a7507a09

View File

@@ -51,17 +51,16 @@
label_method: ->(contrast) { I18n.t("contrast.#{contrast}", default: contrast) }, label_method: ->(contrast) { I18n.t("contrast.#{contrast}", default: contrast) },
wrapper: :with_label, wrapper: :with_label,
required: false required: false
.input.horizontal-options
.fields-group = ff.input :'web.emoji_style',
= f.simple_fields_for :settings, current_user.settings do |ff| as: :radio_buttons,
= ff.input :'web.emoji_style', collection: user_settings_collection('web.emoji_style'),
collection: user_settings_collection('web.emoji_style'), include_blank: false,
include_blank: false, hint: I18n.t('simple_form.hints.defaults.setting_emoji_style'),
hint: I18n.t('simple_form.hints.defaults.setting_emoji_style'), label: I18n.t('simple_form.labels.defaults.setting_emoji_style'),
label: I18n.t('simple_form.labels.defaults.setting_emoji_style'), label_method: ->(emoji_style) { I18n.t("emoji_styles.#{emoji_style}", default: emoji_style) },
label_method: ->(emoji_style) { I18n.t("emoji_styles.#{emoji_style}", default: emoji_style) }, wrapper: :with_label,
wrapper: :with_label, required: false
required: false
- unless I18n.locale == :en - unless I18n.locale == :en
.flash-message.translation-prompt .flash-message.translation-prompt