mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Make the code example demo narrow enough to fit on mobile (#4281)
I think it is a good example, and so I want to open it by default, but for that it needs to work on mobile. Hopefully this doesn't make it too cryptic <img width="415" alt="image" src="https://github.com/emilk/egui/assets/1148717/83d881fa-675e-4659-bd21-14abcb79fe46">
This commit is contained in:
@@ -305,6 +305,7 @@ fn integration_ui(ui: &mut egui::Ui, _frame: &mut eframe::Frame) {
|
||||
Some(egui::vec2(375.0, 667.0)),
|
||||
"📱 iPhone SE 2nd Gen",
|
||||
);
|
||||
ui.selectable_value(&mut size, Some(egui::vec2(393.0, 852.0)), "📱 iPhone 15");
|
||||
ui.selectable_value(
|
||||
&mut size,
|
||||
Some(egui::vec2(1280.0, 720.0)),
|
||||
|
||||
Reference in New Issue
Block a user