mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
EmojiInputDialog: Ensure that all buttons are equal width
Previously we only set the min size which meant that some emoji buttons was larger than others :^)
This commit is contained in:
parent
f3b5f03b2a
commit
645712be3b
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,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_fixed_size(16, 16);
|
||||
button.set_button_style(Gfx::ButtonStyle::Coolbar);
|
||||
button.on_click = [this, button = &button](auto) {
|
||||
m_selected_emoji_text = button->text();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue