From 4470162ad5bb9cc04ae055c97b8c610a94d96ede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Proch=C3=A1zka?= Date: Thu, 6 Jun 2024 14:13:00 +0200 Subject: [PATCH] Fix rerun-web canvas size (#6511) ### What The canvas size was the default of 300x150 because we didn't update the CSS in `index.html` after - https://github.com/emilk/egui/pull/4536 Closes - https://github.com/rerun-io/rerun/issues/6507 ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested the web demo (if applicable): * Using examples from latest `main` build: [rerun.io/viewer](https://rerun.io/viewer/pr/6511?manifest_url=https://app.rerun.io/version/main/examples_manifest.json) * Using full set of examples from `nightly` build: [rerun.io/viewer](https://rerun.io/viewer/pr/6511?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json) * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG * [x] If applicable, add a new check to the [release checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)! - [PR Build Summary](https://build.rerun.io/pr/6511) - [Recent benchmark results](https://build.rerun.io/graphs/crates.html) - [Wasm size tracking](https://build.rerun.io/graphs/sizes.html) To run all checks from `main`, comment on the PR with `@rerun-bot full-check`. --- web_viewer/index.html | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/web_viewer/index.html b/web_viewer/index.html index 91a507df37e1..58dc70aa513b 100644 --- a/web_viewer/index.html +++ b/web_viewer/index.html @@ -44,15 +44,11 @@ /* Position canvas in center-top: */ canvas { - margin-right: auto; - margin-left: auto; - display: block; position: absolute; - top: 0%; - left: 50%; - transform: translate(-50%, 0%); - /* canvas must be on top when visible */ - z-index: 1000; + top: 0; + left: 0; + width: 100%; + height: 100%; } /* Match the Rerun header bar. */