From e8f150c6eba93ca07b3ab3ac59471f51d2f98ed7 Mon Sep 17 00:00:00 2001 From: Kostya Tytelmaier Date: Mon, 28 Sep 2026 01:42:45 +0300 Subject: [PATCH 1/3] Display board variant in the BOM header --- InteractiveHtmlBom/web/ibom.css | 38 +++++++++++++++++++++++++++++++- InteractiveHtmlBom/web/ibom.html | 5 +++-- InteractiveHtmlBom/web/ibom.js | 7 ++++++ 3 files changed, 47 insertions(+), 3 deletions(-) diff --git a/InteractiveHtmlBom/web/ibom.css b/InteractiveHtmlBom/web/ibom.css index d3f16c3e..3e05baef 100644 --- a/InteractiveHtmlBom/web/ibom.css +++ b/InteractiveHtmlBom/web/ibom.css @@ -174,7 +174,16 @@ canvas:active { padding: 3px; } -.fileinfo .title { +.fileinfo #title { + width: 70%; +} + +.fileinfo #revision { + width: 30%; +} + +.fileinfo .title, +#variant { font-size: 20pt; font-weight: bold; } @@ -664,6 +673,33 @@ mark.highlight { overflow: auto; } +#fileinfodiv.has-variant { + display: flex; + align-items: flex-start; +} + +#fileinfodiv.has-variant .fileinfo { + flex: 2 1 40rem; + min-width: 0; + max-width: none; + box-sizing: border-box; +} + +#fileinfodiv.has-variant #title, +#fileinfodiv.has-variant #revision { + width: 50%; +} + +#variant { + flex: 1 1 20rem; + box-sizing: border-box; + min-width: 0; + padding: 6px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} + #bomcontrols { display: flex; flex-direction: row-reverse; diff --git a/InteractiveHtmlBom/web/ibom.html b/InteractiveHtmlBom/web/ibom.html index 69fd7771..f442513c 100644 --- a/InteractiveHtmlBom/web/ibom.html +++ b/InteractiveHtmlBom/web/ibom.html @@ -60,10 +60,10 @@ - - @@ -77,6 +77,7 @@
+ Title + Revision
+