Skip to content

Commit

Permalink
Tab: Limit the width of the cards
Browse files Browse the repository at this point in the history
Fixes osbuild#1712.

This adds maximum width to the `Grid` component, limiting the maximum width of the cards on a Customization tab as well.
  • Loading branch information
regexowl committed Feb 9, 2023
1 parent 31f1d22 commit 3183021
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/Tab/CustomizationsTab.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.pf-u-max-width {
--pf-u-max-width--MaxWidth: 150ch;
}
3 changes: 2 additions & 1 deletion src/components/Tab/CustomizationsTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ import LocaleCardModal from "../Modal/LocaleCard";
import FDOCardModal from "../Modal/FDOCard";
import OpenSCAPCardModal from "../Modal/OpenSCAPCard";
import UserCard from "../Cards/UserCard";
import "./CustomizationsTab.css";

const CustomizationsTab = ({ blueprint }) => {
return (
<Grid hasGutter className="pf-u-p-lg">
<Grid hasGutter className="pf-u-p-lg pf-u-max-width">
<GridItem span={3}>
<Flex direction={{ default: "column" }}>
<FlexItem>
Expand Down

0 comments on commit 3183021

Please sign in to comment.