Skip to content

Commit

Permalink
Fix incorrect grid columns on tablets in page detail views (#5073)
Browse files Browse the repository at this point in the history
* add missing tablet columns

* changeset
  • Loading branch information
Cloud11PL authored Jul 29, 2024
1 parent e6be141 commit 0d14016
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/shy-lizards-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

You can now view channel and product details pages on tablets
2 changes: 2 additions & 0 deletions src/components/Layouts/Detail/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ export const RootLayout: React.FC<DetailPageLayoutProps> = ({
if (gridTemplateColumns instanceof Object) {
return {
mobile: gridTemplateColumns.mobile ?? 1,
tablet: gridTemplateColumns.tablet,
...gridTemplateColumns,
};
}

return {
mobile: 1,
tablet: gridTemplateColumns,
desktop: gridTemplateColumns,
};
}, [gridTemplateColumns]);
Expand Down

0 comments on commit 0d14016

Please sign in to comment.