diff --git a/Source/Core/DolphinQt/Config/Mapping/MappingButton.cpp b/Source/Core/DolphinQt/Config/Mapping/MappingButton.cpp index 7eade0b77d..4fa2e0c926 100644 --- a/Source/Core/DolphinQt/Config/Mapping/MappingButton.cpp +++ b/Source/Core/DolphinQt/Config/Mapping/MappingButton.cpp @@ -49,7 +49,7 @@ MappingButton::MappingButton(MappingWidget* parent, ControlReference* ref, bool setFixedHeight(minimumSizeHint().height()); // Make sure that long entries don't throw our layout out of whack. - setFixedWidth(112); + setFixedWidth(WIDGET_MAX_WIDTH); setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored); diff --git a/Source/Core/DolphinQt/Config/Mapping/MappingNumeric.cpp b/Source/Core/DolphinQt/Config/Mapping/MappingNumeric.cpp index cab6c68d9b..b2231f8ec6 100644 --- a/Source/Core/DolphinQt/Config/Mapping/MappingNumeric.cpp +++ b/Source/Core/DolphinQt/Config/Mapping/MappingNumeric.cpp @@ -15,6 +15,8 @@ MappingDouble::MappingDouble(MappingWidget* parent, ControllerEmu::NumericSettin setRange(m_setting.GetMinValue(), m_setting.GetMaxValue()); setDecimals(2); + setFixedWidth(WIDGET_MAX_WIDTH); + if (const auto ui_suffix = m_setting.GetUISuffix()) setSuffix(QStringLiteral(" ") + tr(ui_suffix)); diff --git a/Source/Core/DolphinQt/Config/Mapping/MappingWidget.h b/Source/Core/DolphinQt/Config/Mapping/MappingWidget.h index 1b66a92a4d..cd06a3ded8 100644 --- a/Source/Core/DolphinQt/Config/Mapping/MappingWidget.h +++ b/Source/Core/DolphinQt/Config/Mapping/MappingWidget.h @@ -10,6 +10,8 @@ #include #include +constexpr int WIDGET_MAX_WIDTH = 112; + class ControlGroupBox; class InputConfig; class IOWindow;