From 0620a9b1d02ff3f6a34fd38ec97c13084578eac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Proch=C3=A1zka?= <1665677+jprochazk@users.noreply.github.com> Date: Mon, 19 Jun 2023 16:16:14 +0200 Subject: [PATCH] Fix example CSS (#2475) ### What - Examples dropdown items no longer wrap - "Rerun is not yet supported on mobile browsers" text is no longer squashed ### Checklist * [ ] 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) * [ ] I've included a screenshot or gif (if applicable) PR Build Summary: https://build.rerun.io/pr/2475 Docs preview: https://rerun.io/preview/643efcb/docs Examples preview: https://rerun.io/preview/643efcb/examples --- scripts/demo_assets/static/index.css | 5 ++--- web_viewer/index.html | 1 - web_viewer/index_bundled.html | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/demo_assets/static/index.css b/scripts/demo_assets/static/index.css index c00dcf34f56a..a4f7762444ad 100644 --- a/scripts/demo_assets/static/index.css +++ b/scripts/demo_assets/static/index.css @@ -73,7 +73,6 @@ p { color: #cad8de; letter-spacing: -0.15px; font-weight: 500; - line-height: 14px; } /* Rerun styling for strong text. Matches `TextStyle::Heading`. */ @@ -255,8 +254,6 @@ img.icon { padding: 6px; user-select: none; - - width: 92px; } .dropdown-body.visible { @@ -270,6 +267,8 @@ img.icon { font-size: 13px; display: flex; justify-content: space-between; + white-space: nowrap; + overflow: hidden; } .dropdown-entry:hover { diff --git a/web_viewer/index.html b/web_viewer/index.html index a578b5b98f9e..cc140fe1f0d6 100644 --- a/web_viewer/index.html +++ b/web_viewer/index.html @@ -84,7 +84,6 @@ letter-spacing: -0.15px; font-family: 'Inter', sans-serif; font-weight: 500; - line-height: 14px; } /* Rerun styling for strong text. Matches `TextStyle::Heading`. */ diff --git a/web_viewer/index_bundled.html b/web_viewer/index_bundled.html index 6414be4c28b5..b034819c531f 100644 --- a/web_viewer/index_bundled.html +++ b/web_viewer/index_bundled.html @@ -84,7 +84,6 @@ letter-spacing: -0.15px; font-family: 'Inter', sans-serif; font-weight: 500; - line-height: 14px; } /* Rerun styling for strong text. Matches `TextStyle::Heading`. */