From 15a7507a092073f0056a84c428caba9bdb630c9f Mon Sep 17 00:00:00 2001 From: diondiondion Date: Thu, 21 May 2026 18:55:28 +0200 Subject: [PATCH] Use radio buttons for emoji style preference (#39126) --- .../preferences/appearance/show.html.haml | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/app/views/settings/preferences/appearance/show.html.haml b/app/views/settings/preferences/appearance/show.html.haml index c024d2d515e..f521fd99b5e 100644 --- a/app/views/settings/preferences/appearance/show.html.haml +++ b/app/views/settings/preferences/appearance/show.html.haml @@ -51,17 +51,16 @@ label_method: ->(contrast) { I18n.t("contrast.#{contrast}", default: contrast) }, wrapper: :with_label, required: false - - .fields-group - = f.simple_fields_for :settings, current_user.settings do |ff| - = ff.input :'web.emoji_style', - collection: user_settings_collection('web.emoji_style'), - include_blank: false, - hint: I18n.t('simple_form.hints.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) }, - wrapper: :with_label, - required: false + .input.horizontal-options + = ff.input :'web.emoji_style', + as: :radio_buttons, + collection: user_settings_collection('web.emoji_style'), + include_blank: false, + hint: I18n.t('simple_form.hints.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) }, + wrapper: :with_label, + required: false - unless I18n.locale == :en .flash-message.translation-prompt