Skip to content

Commit fdf9b5e

Browse files
committed
fix: Ask component's Home button causes header height unconformity vs ProfileExplorer
1 parent 86bb5ad commit fdf9b5e

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ export default class AskUI extends React.PureComponent<Props, State> {
109109
/** content to show in the upper right */
110110
private actions() {
111111
return (
112-
<ActionGroup>
112+
<ActionGroup className="kui--guide-actions">
113113
<Tooltip markdown={`### Home\n#### Jump back to the beginning\n\n⌘ or Alt-click to open a new window`}>
114-
<Button variant="link" icon={<HomeIcon className="larger-text" />} onClick={this._home} />
114+
<Button variant="link" icon={<HomeIcon />} onClick={this._home} />
115115
</Tooltip>
116116
</ActionGroup>
117117
)

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

+15
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,18 @@
4646
}
4747
}
4848
}
49+
50+
@include Ask {
51+
.pf-c-card__actions {
52+
align-self: unset;
53+
}
54+
@include AskActions {
55+
button {
56+
padding-top: 0;
57+
padding-bottom: 0;
58+
svg {
59+
font-size: 1.25rem;
60+
}
61+
}
62+
}
63+
}

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

+6
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@
1919
@content;
2020
}
2121
}
22+
23+
@mixin AskActions {
24+
.kui--guide-actions {
25+
@content;
26+
}
27+
}

0 commit comments

Comments
 (0)