mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02: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:
committed by
Ali Mohammad Pur
parent
f3b5f03b2a
commit
645712be3b
Notes:
sideshowbarker
2024-07-17 21:31:08 +09:00
Author: https://github.com/filiphsps Commit: https://github.com/SerenityOS/serenity/commit/645712be3b5
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user