Skip to content

Commit 9491be1

Browse files
committed
fix: in hello component, profile grid is vertical, should be horizontal
1 parent 5260858 commit 9491be1

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

plugins/plugin-codeflare/src/controller/profile/get.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ export default async function getProfiles(args: Arguments) {
2525

2626
return {
2727
react: (
28-
<Grid hasGutter className="codeflare--grid">
28+
<Grid hasGutter className="codeflare--plain-grid" span={3}>
2929
{profiles.map((_) => (
3030
<GridItem key={_.profile.name}>
31-
<Tile isSelected className="codeflare--tile" title={_.profile.name} />
31+
<Tile className="codeflare--tile" title={_.profile.name} />
3232
</GridItem>
3333
))}
3434
</Grid>

plugins/plugin-codeflare/web/scss/components/Hello/_index.scss

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,18 @@
3131
$gap: 3px;
3232
$cell: 1.5em;
3333

34-
@mixin Grid {
34+
@mixin MicroGrid {
3535
.pf-l-grid.codeflare--grid {
3636
@content;
3737
}
3838
}
3939

40+
@mixin Grid {
41+
.codeflare--plain-grid {
42+
@content;
43+
}
44+
}
45+
4046
@mixin Tile {
4147
.codeflare--tile {
4248
@content;
@@ -53,6 +59,12 @@ $cell: 1.5em;
5359
font-family: var(--font-sans-serif);
5460
padding: 1em;
5561
flex: 1;
62+
}
63+
64+
@include MicroGrid {
65+
font-family: var(--font-sans-serif);
66+
padding: 1em;
67+
flex: 1;
5668
grid-auto-rows: max-content;
5769
grid-template-columns: repeat(auto-fit, $cell);
5870
}

0 commit comments

Comments
 (0)