From aa48558e3f8744905df17e185dc66626593c74b2 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Tue, 2 Jan 2024 19:27:39 +0100 Subject: [PATCH] Change examples page menu on smaller screens (#4958) --- CHANGELOG.md | 1 + examples/src/main.rs | 1 + examples/static/index.html | 71 ++++++++++++++++++++++++++++++++++++-- 3 files changed, 71 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90c66457f..118e54178 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -216,6 +216,7 @@ Passing an owned value `window` to `Surface` will return a `Surface<'static>`. S ### Examples - remove winit dependency from hello-compute example by @psvri in [#4699](https://github.com/gfx-rs/wgpu/pull/4699) +- Made the examples page not crash on Chrome on Android, and responsive to screen sizes by @Dinnerbone in [#4958](https://github.com/gfx-rs/wgpu/pull/4958) ## v0.18.1 (2023-11-15) diff --git a/examples/src/main.rs b/examples/src/main.rs index 948cfd494..8b149d5a2 100644 --- a/examples/src/main.rs +++ b/examples/src/main.rs @@ -189,6 +189,7 @@ fn print_examples() { let item = document.create_element("div").unwrap(); item.append_child(&link).unwrap(); + item.set_class_name("example-item"); ul.append_child(&item).unwrap(); } } diff --git a/examples/static/index.html b/examples/static/index.html index 12a395f21..135c04d81 100644 --- a/examples/static/index.html +++ b/examples/static/index.html @@ -1,6 +1,7 @@ +
-