Skip to content

Commit 5e603fd

Browse files
committed
fix: ProfileExplorer has extra spacing to the right of New button
Also increase max-width of Ask
1 parent 767cc08 commit 5e603fd

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Diff for: plugins/plugin-codeflare/src/components/ProfileExplorer.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -586,11 +586,11 @@ class ProfileCard extends React.PureComponent<ProfileCardProps, ProfileCardState
586586
private readonly nowrap = { default: "nowrap" as const }
587587
private readonly flex1 = { default: "flex_1" as const }
588588
private readonly flexEnd = { default: "justifyContentFlexEnd" as const }
589-
private readonly nopadding = { padding: "0 0.5em" }
589+
private readonly spaceNone = { default: "spaceItemsNone" as const }
590590

591591
private footer() {
592592
return (
593-
<Flex flexWrap={this.nowrap} justifyContent={this.flexEnd}>
593+
<Flex flexWrap={this.nowrap} justifyContent={this.flexEnd} spaceItems={this.spaceNone}>
594594
<FlexItem flex={this.flex1}>
595595
<Tooltip position="top" content="Create a new profile">
596596
<Button variant="link" icon={<PlusSquareIcon />} onClick={this._onNew} />

Diff for: plugins/plugin-codeflare/web/scss/components/Ask/_index.scss

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
@import "mixins";
1818

19+
$max-width: 50rem;
20+
1921
@include Ask {
2022
button:not(.pf-m-link):not(.pf-c-select__toggle-button) {
2123
color: var(--pf-c-button--m-primary--Color) !important;
@@ -46,9 +48,9 @@
4648
@include Ask {
4749
&,
4850
.pf-c-card {
49-
width: 40rem;
51+
width: $max-width;
5052
min-width: 0;
51-
max-width: 40rem;
53+
max-width: $max-width;
5254
}
5355

5456
.pf-c-select__menu-item-main {

0 commit comments

Comments
 (0)