Skip to content

Commit

Permalink
chore(release): publish@4.11.11 (#1571)
Browse files Browse the repository at this point in the history
* fix: fit resources in main

* chore(release): publish@4.11.11
  • Loading branch information
melissag-ensemble committed Apr 1, 2024
1 parent bea2cb9 commit 605fb23
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/gatsby-theme-aio/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [4.11.11](https://github.com/adobe/aio-theme/compare/@adobe/gatsby-theme-aio@4.11.10...@adobe/gatsby-theme-aio@4.11.11) (2024-03-28)

### Fix

* **DEVSITE-1116:** Fit resources in main so it aligns correctly with hero [b01b2ab](https://github.com/adobe/aio-theme/pull/1567/commits/b01b2abbab9f969c3ee84299f9f4ff0f65a323e8)

## [4.11.10](https://github.com/adobe/aio-theme/compare/@adobe/gatsby-theme-aio@4.11.9...@adobe/gatsby-theme-aio@4.11.10) (2024-03-21)

### Features
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-theme-aio/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/gatsby-theme-aio",
"version": "4.11.10",
"version": "4.11.11",
"description": "The Adobe I/O theme for building markdown powered sites",
"main": "index.js",
"license": "Apache-2.0",
Expand Down
6 changes: 5 additions & 1 deletion packages/gatsby-theme-aio/src/components/MDXFilter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,17 @@ export default ({ children, pageContext, query }) => {
(tableOfContentsItems.length > 1 ||
(tableOfContentsItems.length === 1 && tableOfContentsItems[0]?.items?.length > 1) ||
tableOfContentsItems[0]?.title);
const hasResources = Boolean(resourcesChild);
const isFirstSubPage = selectedPage?.pathname === selectedPageSiblings?.[0]?.pathname;

const columns = 12;
const diff = [];
if (hasOnThisPage) {
diff.push(`${layoutColumns(2)} - var(--spectrum-global-dimension-size-400)`);
}
if (hasResources) {
diff.push(`${layoutColumns(3)} - var(--spectrum-global-dimension-size-400)`);
}
if (hasSideNav) {
diff.push(SIDENAV_WIDTH);
}
Expand Down Expand Up @@ -398,7 +402,7 @@ export default ({ children, pageContext, query }) => {
)}
</div>
{hasOnThisPage && <OnThisPage tableOfContents={tableOfContents} />}
{resourcesChild && resourcesChild}
{hasResources && resourcesChild}
</div>
</div>
<Footer hasSideNav={hasSideNav} />
Expand Down

0 comments on commit 605fb23

Please sign in to comment.