From 2ef3ed4463aa83852251207bb6a18e4ab4b8fc36 Mon Sep 17 00:00:00 2001 From: Buck Doyle Date: Thu, 10 Sep 2026 12:36:25 -0400 Subject: [PATCH] Give the definition-container header a whole-pixel min-height MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `1.56rem` is 24.96px at the default root size. A fractional height leaves each engine to round it however it likes, so the same content can land a pixel apart between browsers — and everything below it shifts with the header. The value reads as a conversion that lost precision: 25 / 16 is 1.5625, and 1.56 is that rounded to two places. `1.5625rem` is 25px exactly, which is what the surrounding declarations use — the button min-height two rules down is `1.5rem`, a whole 24px. This is a candidate fix rather than a confirmed one. An inspector-sidebar snapshot has been reporting a Firefox-only diff at a `diff-ratio` stable to six figures across builds and across branches, which is the signature of one region shifting by a fixed amount rather than of anything either branch changed. A fractional header height in that sidebar explains it, and only six rem values in the whole component tree fail to land on a whole pixel. Whether it is the cause is answered by the diff either recurring or stopping. The same declaration is duplicated in boxel-ui's header usage page, which is where it would be copied from next. Co-Authored-By: Claude Opus 5 --- packages/boxel-ui/src/components/header/usage.gts | 5 ++++- .../components/operator-mode/definition-container/base.gts | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/boxel-ui/src/components/header/usage.gts b/packages/boxel-ui/src/components/header/usage.gts index 66f31997994..dc7e8b8ff5b 100644 --- a/packages/boxel-ui/src/components/header/usage.gts +++ b/packages/boxel-ui/src/components/header/usage.gts @@ -102,7 +102,10 @@ export default class HeaderUsage extends Component {