Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/compat/src/components/Toolbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ const Toolbar = forwardRef<HTMLDivElement, ToolbarPropTypes>((props, ref) => {
}
return (
<div
ref={itemRef}
ref={(node) => {
controlMetaData.current[index].ref.current = node;
}}
key={index}
className={classNames.childContainer}
data-component-name="ToolbarChildContainer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@

.title {
flex-shrink: 1;
min-width: 3rem;
overflow-x: hidden;
font-family: var(--sapObjectHeader_Title_FontFamily);
color: var(--sapObjectHeader_Title_TextColor);
Expand Down Expand Up @@ -123,20 +122,22 @@
justify-content: flex-end;
align-self: flex-start;

/*ToDo: remove after legacy toolbar support isn't required anymore*/
&:has([data-in-object-page-title]) {
min-width: 2.125rem;
}
> [data-component-name='Toolbar']:not(:first-child):last-child {
width: unset;
flex-shrink: 0;
}

> [ui5-toolbar] {
padding: 0;
border: none;
}

> [ui5-toolbar]:not(:first-child):last-child {
flex: 0 1;
}

> [data-component-name='Toolbar']:not(:first-child):last-child {
width: unset;
flex-shrink: 0;
}

> [ui5-toolbar]:only-child {
flex-grow: 1;
flex-shrink: 0;
Expand Down
Loading