Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions site/src/assets/examples/album/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" aria-hidden="true" class="me-2" viewBox="0 0 24 24"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg>
<strong>Album</strong>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarHeader" aria-controls="navbarHeader" aria-expanded="false" aria-label="Toggle navigation">
<button class="btn-icon navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarHeader" aria-controls="navbarHeader" aria-expanded="false" aria-label="Toggle navigation">
<svg class="navbar-toggler-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round"><path d="M1 3.5h14M1 8h14M1 12.5h14"/></svg>
</button>
</div>
Expand All @@ -45,14 +45,14 @@ import Placeholder from "@shortcodes/Placeholder.astro"
<h1 class="fw-light">Album example</h1>
<p class="lead fg-2">Something short and leading about the collection below—its contents, the creator, etc. Make it short and sweet, but not too short so folks don’t simply skip over it entirely.</p>
<p>
<a href="#" class="btn-solid theme-primary my-2">Main call to action</a>
<a href="#" class="btn-solid theme-secondary my-2">Secondary action</a>
<a href="#" class="btn-solid theme-primary m-2">Main call to action</a>
<a href="#" class="btn-solid theme-secondary m-2">Secondary action</a>
Comment on lines +48 to +49
Copy link

Copilot AI Apr 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using m-2 adds horizontal margin on both sides of each button, which can create unintended outer spacing (e.g., extra left margin before the first button and extra right margin after the last). If the goal is just spacing between the buttons, prefer using directional spacing (e.g., me-2 on the first button while keeping my-2 for vertical rhythm) or apply a parent gap-* with a flex wrapper so only inter-button spacing is affected.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was an intentional change on my part. I thought the buttons were too close before... I can revert it though if requested.

</p>
</div>
</div>
</section>

<div class="album py-5 bg-body-tertiary">
<div class="album py-5 bg-1">
<div class="container">

<div class="row row-cols-1 sm:row-cols-2 md:row-cols-3 g-3">
Expand All @@ -61,7 +61,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
<Placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" />
<div class="card-body">
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<div class="d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-between align-items-center w-100">
Copy link

Copilot AI Apr 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

w-100 is likely redundant here because a div is block-level by default and will typically already span the available width. If there isn't a specific shrink-to-fit scenario being addressed, removing w-100 would reduce noise in the example and keep the markup closer to the minimal pattern.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change was intentional, the div was not full-width of the containing card before.... see
https://v6-dev--twbs-bootstrap.netlify.app/docs/6.0/examples/album/

<div class="btn-group">
<button type="button" class="btn-outline theme-secondary btn-sm">View</button>
<button type="button" class="btn-outline theme-secondary btn-sm">Edit</button>
Expand All @@ -76,7 +76,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
<Placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" />
<div class="card-body">
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<div class="d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-between align-items-center w-100">
<div class="btn-group">
<button type="button" class="btn-outline theme-secondary btn-sm">View</button>
<button type="button" class="btn-outline theme-secondary btn-sm">Edit</button>
Expand All @@ -91,7 +91,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
<Placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" />
<div class="card-body">
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<div class="d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-between align-items-center w-100">
<div class="btn-group">
<button type="button" class="btn-outline theme-secondary btn-sm">View</button>
<button type="button" class="btn-outline theme-secondary btn-sm">Edit</button>
Expand All @@ -107,7 +107,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
<Placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" />
<div class="card-body">
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<div class="d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-between align-items-center w-100">
<div class="btn-group">
<button type="button" class="btn-outline theme-secondary btn-sm">View</button>
<button type="button" class="btn-outline theme-secondary btn-sm">Edit</button>
Expand All @@ -122,7 +122,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
<Placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" />
<div class="card-body">
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<div class="d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-between align-items-center w-100">
<div class="btn-group">
<button type="button" class="btn-outline theme-secondary btn-sm">View</button>
<button type="button" class="btn-outline theme-secondary btn-sm">Edit</button>
Expand All @@ -137,7 +137,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
<Placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" />
<div class="card-body">
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<div class="d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-between align-items-center w-100">
<div class="btn-group">
<button type="button" class="btn-outline theme-secondary btn-sm">View</button>
<button type="button" class="btn-outline theme-secondary btn-sm">Edit</button>
Expand All @@ -153,7 +153,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
<Placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" />
<div class="card-body">
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<div class="d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-between align-items-center w-100">
<div class="btn-group">
<button type="button" class="btn-outline theme-secondary btn-sm">View</button>
<button type="button" class="btn-outline theme-secondary btn-sm">Edit</button>
Expand All @@ -168,7 +168,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
<Placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" />
<div class="card-body">
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<div class="d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-between align-items-center w-100">
<div class="btn-group">
<button type="button" class="btn-outline theme-secondary btn-sm">View</button>
<button type="button" class="btn-outline theme-secondary btn-sm">Edit</button>
Expand All @@ -183,7 +183,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
<Placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" />
<div class="card-body">
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<div class="d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-between align-items-center w-100">
<div class="btn-group">
<button type="button" class="btn-outline theme-secondary btn-sm">View</button>
<button type="button" class="btn-outline theme-secondary btn-sm">Edit</button>
Expand Down
Loading