Skip to content

Commit

Permalink
chore: adjust tile styles
Browse files Browse the repository at this point in the history
  • Loading branch information
tthvo committed Sep 3, 2024
1 parent be2f3cc commit 6d918b1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/Dashboard/AddCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ export const CardGallery: React.FC<CardGalleryProps> = ({ selection, onSelect })
const { icon, labels, title, description } = card;
return (
<CatalogTile
style={{ height: '100%' }}
featured={selection === t(title)}
id={title}
key={title}
Expand Down Expand Up @@ -421,7 +420,7 @@ export const CardGallery: React.FC<CardGalleryProps> = ({ selection, onSelect })
<Drawer isExpanded={!!toViewCard} isInline>
<DrawerContent panelContent={panelContent}>
<DrawerContentBody>
<Grid hasGutter style={{ alignItems: 'stretch', marginTop: '1em', marginRight: !toViewCard ? 0 : '1em' }}>
<Grid hasGutter className="dashboard-card-picker" style={{ marginRight: !toViewCard ? 0 : '1em' }}>
{items.map((item) => (
<GridItem span={4} key={item.key}>
{item}
Expand Down
12 changes: 12 additions & 0 deletions src/app/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,18 @@ body,
overflow-y: auto;
}

.dashboard-card-picker {
align-items: stretch;
margin-top: 1em;
/* Ensure left border is visible*/
margin-left: 1px;
}

.dashboard-card-picker .catalog-tile-pf {
height: 100%;
border-top: 1.5px solid var(--pf-v5-global--palette--black-300);
}

.layout-template-picker {
padding: 0 1em 1em 1em;
}
Expand Down

0 comments on commit 6d918b1

Please sign in to comment.