Skip to content

Commit 70745c6

Browse files
authored
fix(ObjectPage): position expand/collapse buttons correctly (#6897)
Fixes #6867
1 parent 8c57df7 commit 70745c6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252
}
5353
}
5454

55+
/*:has cannot be nested*/
56+
.header:has([data-component-name='ATwithImageSnappedContentContainer']) [data-component-name='ObjectPageTitle'] {
57+
padding-block-end: 0;
58+
}
59+
5560
.headerCollapsed {
5661
--_ui5wcr_ObjectPage_header_display: none;
5762
--_ui5wcr_ObjectPage_title_fontsize: var(--sapObjectHeader_Title_SnappedFontSize);
@@ -177,6 +182,7 @@
177182

178183
.snappedContent {
179184
grid-column: 1 / span 2;
185+
padding-block-end: 0.5rem;
180186
}
181187

182188
.clickArea {

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ const ObjectPage = forwardRef<ObjectPageDomRef, ObjectPagePropTypes>((props, ref
794794
top:
795795
scrolledHeaderExpanded || headerPinned
796796
? `${topHeaderHeight + (headerCollapsed === true ? 0 : headerContentHeight)}px`
797-
: `${topHeaderHeight + 5}px`
797+
: `${topHeaderHeight}px`
798798
}}
799799
>
800800
<ObjectPageAnchorBar

0 commit comments

Comments
 (0)