Skip to content

Commit 223888a

Browse files
1363 - Making the title use all space available. Moves the subtitle around to show above the children (action buttons) on small screens
1 parent f5138d3 commit 223888a

File tree

4 files changed

+17
-11
lines changed

4 files changed

+17
-11
lines changed

.changeset/tough-bears-judge.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@orchestrator-ui/orchestrator-ui-components': patch
3+
---
4+
5+
1363 - Making the title use all space available. Moves the subtitle around to show above the children (action buttons) on small screens

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/orchestrator-ui-components/src/components/WfoContentHeader/WfoContentHeader.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,18 @@ export const WfoContentHeader: FC<WfoContentHeaderProps> = ({
3030
>
3131
{title}
3232
</WfoRenderElementOrString>
33+
{subtitle && (
34+
<div>
35+
<EuiSpacer size="m" />
36+
<WfoRenderElementOrString>
37+
{subtitle}
38+
</WfoRenderElementOrString>
39+
</div>
40+
)}
3341
</EuiFlexItem>
3442

3543
{children && (
36-
<EuiFlexItem>
44+
<EuiFlexItem grow={0}>
3745
<EuiFlexGroup justifyContent="flexEnd">
3846
<WfoRenderElementOrString>
3947
{children}
@@ -43,13 +51,6 @@ export const WfoContentHeader: FC<WfoContentHeaderProps> = ({
4351
)}
4452
</EuiFlexGroup>
4553

46-
{subtitle && (
47-
<>
48-
<EuiSpacer size="m" />
49-
<WfoRenderElementOrString>{subtitle}</WfoRenderElementOrString>
50-
</>
51-
)}
52-
5354
<EuiSpacer size="l" />
5455
</>
5556
);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const ORCHESTRATOR_UI_LIBRARY_VERSION = '2.0.0';
1+
export const ORCHESTRATOR_UI_LIBRARY_VERSION = '2.1.0';

0 commit comments

Comments
 (0)