1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -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:
Emil Ernerfeldt
2024-03-30 17:51:44 +01:00
committed by GitHub
parent 33221bd4dd
commit 1354c3e19a
3 changed files with 77 additions and 51 deletions

View File

@@ -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)),