summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-12-31 14:30:00 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-31 14:32:09 +0100
commitd441dec5d8df7ed12f2369cd941034a004efa887 (patch)
tree2008978466dd493c90220b6cb8506e3a858bfc98 /Libraries/LibGUI
parentc0356fc1839f1b7b2c891e6c30a10379ffeee689 (diff)
downloadserenity-d441dec5d8df7ed12f2369cd941034a004efa887.zip
LibGUI: Make the emojis in the emoji input dialog fit in the window
GUI::Button has a default min-width of 32, so we have to override that here in order to squeeze all the emojis into the window. Fixes #4689.
Diffstat (limited to 'Libraries/LibGUI')
-rw-r--r--Libraries/LibGUI/EmojiInputDialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibGUI/EmojiInputDialog.cpp b/Libraries/LibGUI/EmojiInputDialog.cpp
index ef0a2d65c5..c1870c5af0 100644
--- a/Libraries/LibGUI/EmojiInputDialog.cpp
+++ b/Libraries/LibGUI/EmojiInputDialog.cpp
@@ -83,6 +83,7 @@ EmojiInputDialog::EmojiInputDialog(Window* parent_window)
builder.append(Utf32View(&code_points[index++], 1));
auto emoji_text = builder.to_string();
auto& button = horizontal_container.add<Button>(emoji_text);
+ button.set_min_size(16, 16);
button.set_button_style(Gfx::ButtonStyle::CoolBar);
button.on_click = [this, button = &button](auto) {
m_selected_emoji_text = button->text();