Skip to content

Commit 4cfd365

Browse files
committed
more alignment adjustments
1 parent 69ae6eb commit 4cfd365

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

packages/main/src/components/ObjectPage/ObjectPage.stories.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import {
4040
Toolbar,
4141
ToolbarButton,
4242
} from '../../index.js';
43+
import { Tag } from '../../webComponents/Tag/index.js';
4344
import { ObjectPage } from './index.js';
4445

4546
const meta = {
@@ -78,13 +79,13 @@ const meta = {
7879
subHeader="Senior UI Developer"
7980
snappedSubHeader={'Senior UI Developer (snapped header)'}
8081
actionsBar={
81-
<Toolbar design="Transparent">
82+
<Toolbar design="Transparent" style={{ height: 'auto' }}>
8283
<ToolbarButton design={ButtonDesign.Emphasized} text="Primary Action" />
8384
<ToolbarButton design={ButtonDesign.Transparent} text="Action" />
8485
</Toolbar>
8586
}
8687
navigationBar={
87-
<Toolbar design="Transparent">
88+
<Toolbar design="Transparent" style={{ height: 'auto' }}>
8889
<ToolbarButton
8990
icon={shareIcon}
9091
design={ButtonDesign.Transparent}
@@ -117,7 +118,9 @@ const meta = {
117118
</MessageStrip>
118119
}
119120
>
120-
<ObjectStatus state={ValueState.Positive}>employed</ObjectStatus>
121+
<Tag design="Positive" style={{ alignSelf: 'center' }}>
122+
employed
123+
</Tag>
121124
</ObjectPageTitle>
122125
),
123126
headerArea: (

packages/main/src/components/ObjectPageTitle/ObjectPageTitle.module.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,12 @@
3838
.titleMainSection {
3939
overflow-x: hidden;
4040
flex: 1 1 auto;
41-
align-items: baseline;
4241
}
4342

4443
.middleSection {
4544
flex-grow: 1;
4645
width: 100%;
4746
overflow-x: hidden;
48-
align-items: flex-start;
4947
}
5048

5149
.title {
@@ -58,6 +56,7 @@
5856
padding-block-start: 0.3125rem;
5957
overflow-wrap: break-word;
6058
hyphens: auto;
59+
align-self: start;
6160

6261
> * {
6362
font-family: inherit;
@@ -70,9 +69,16 @@
7069

7170
.snappedAvatarContainer:has([data-component-name='ObjectPageCollapsedAvatar']) {
7271
flex-shrink: 0;
72+
align-self: center;
7373
}
7474

75-
@container (min-width: 600px) and (max-width: 1023px) {
75+
@container (min-width: 1024px) {
76+
.title {
77+
padding-block-start: 0.3125rem;
78+
}
79+
}
80+
81+
@container (min-width: 600px) and (max-width: 1023.99px) {
7682
.title {
7783
padding-block-start: 0.6875rem;
7884
}
@@ -112,10 +118,10 @@
112118
.toolbar {
113119
flex-grow: 1;
114120
flex-shrink: 1.6;
115-
min-width: 3rem;
116121
display: flex;
117122
align-items: center;
118123
justify-content: flex-end;
124+
align-self: flex-start;
119125

120126
> [ui5-toolbar] {
121127
padding: 0;

0 commit comments

Comments
 (0)