]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Docs: format ResizableExample.astro with Prettier v6-css-grid-container 42598/head
authorMark Otto <markdotto@gmail.com>
Tue, 30 Jun 2026 23:14:00 +0000 (16:14 -0700)
committerMark Otto <markdotto@gmail.com>
Tue, 30 Jun 2026 23:14:00 +0000 (16:14 -0700)
site/src/components/shortcodes/ResizableExample.astro

index 475f7d8891068fbd215f6618f1df89957c0cac9a..cf91957ac4aec9c0845f11d5180fbbd276430f37 100644 (file)
@@ -76,11 +76,7 @@ const simplifiedMarkup = markup.replace(
       style={`width: ${initialWidth}; min-width: ${minWidth};`}
     >
       <Fragment set:html={previewMarkup} />
-      {
-        showBreakpoint && (
-          <output class="bd-resizable-badge" data-resizable-badge aria-live="polite" />
-        )
-      }
+      {showBreakpoint && <output class="bd-resizable-badge" data-resizable-badge aria-live="polite" />}
     </div>
   </div>
   {showMarkup && <Code code={simplifiedMarkup} lang="html" nestedInExample={true} />}
@@ -112,8 +108,7 @@ const simplifiedMarkup = markup.replace(
 
     // Measure the actual query container (e.g. `.grid`) when present so the badge
     // matches what `@container` evaluates; otherwise fall back to the container.
-    const target =
-      container.querySelector<HTMLElement>(':scope > *:not(.bd-resizable-badge)') ?? container
+    const target = container.querySelector<HTMLElement>(':scope > *:not(.bd-resizable-badge)') ?? container
 
     const update = (width: number) => {
       const bp = activeBreakpoint(width)