Skip to content

Commit 6f95409

Browse files
authored
fix(home): hide the demo bundles' unpack placeholder (#46)
Opening the site flashed a blue bolt on a dark card inside the frame — the bundler's own "unpacking" placeholder — before the walkthrough appeared. Measured on a cold frame it was on screen from ~15ms until the bundle swapped the document out. Both bundles now hide #__bundler_thumbnail and the "Unpacking..." pill from their own head style. The wrapper already paints the box, so the frame simply stays empty for those few frames. Nothing in the unpacking script touches either element, and the style disappears with the rest of the placeholder document when it is replaced. This edits vendored artifacts, so the rule carries a comment saying to re-apply it if the bundles are regenerated.
1 parent 575f686 commit 6f95409

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

‎public/demo/libredb-studio-demo-mobile.html‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
#__bundler_thumbnail { position: fixed; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #030303; z-index: 9999; }
1111
#__bundler_thumbnail svg { width: 100%; height: 100%; object-fit: contain; }
1212
#__bundler_placeholder { color: #999; font-size: 14px; }
13+
/* libredb-website patch: the unpack placeholder — a blue bolt on a dark card,
14+
plus an "Unpacking..." pill — flashed in the frame before the walkthrough
15+
appeared. Our wrapper already paints the box, so hide both and let the
16+
frame stay empty until the real document replaces this one. Nothing in
17+
the unpacking script touches these two elements. Re-apply if these
18+
bundles are regenerated. */
19+
#__bundler_thumbnail, #__bundler_loading { display: none !important; }
1320
</style>
1421
<noscript>
1522
<style>#__bundler_loading { display: none; }</style>

‎public/demo/libredb-studio-demo.html‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
#__bundler_thumbnail { position: fixed; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #030303; z-index: 9999; }
1111
#__bundler_thumbnail svg { width: 100%; height: 100%; object-fit: contain; }
1212
#__bundler_placeholder { color: #999; font-size: 14px; }
13+
/* libredb-website patch: the unpack placeholder — a blue bolt on a dark card,
14+
plus an "Unpacking..." pill — flashed in the frame before the walkthrough
15+
appeared. Our wrapper already paints the box, so hide both and let the
16+
frame stay empty until the real document replaces this one. Nothing in
17+
the unpacking script touches these two elements. Re-apply if these
18+
bundles are regenerated. */
19+
#__bundler_thumbnail, #__bundler_loading { display: none !important; }
1320
</style>
1421
<noscript>
1522
<style>#__bundler_loading { display: none; }</style>

0 commit comments

Comments
 (0)