Skip to content

Commit 51fb1a3

Browse files
fix(ui5-shellbar): fix search field width (#3296)
1 parent 290b60b commit 51fb1a3

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

packages/fiori/src/ShellBar.js

+1
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,7 @@ class ShellBar extends UI5Element {
897897
wrapper: {
898898
"ui5-shellbar-root": true,
899899
"ui5-shellbar-with-searchfield": this.searchField.length,
900+
"ui5-shellbar-with-coPilot": this.showCoPilot,
900901
},
901902
button: {
902903
"ui5-shellbar-menu-button--interactive": this.hasMenuItems,

packages/fiori/src/themes/ShellBar.css

+7-3
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,15 @@ slot[name="profile"] {
231231
}
232232

233233
.ui5-shellbar-overflow-container-left {
234-
flex-basis: 50%;
235234
max-width: calc(50% - 1.5rem);
236235
justify-content: flex-start;
237236
margin-right: 0.5rem;
238237
}
239238

239+
.ui5-shellbar-with-coPilot .ui5-shellbar-overflow-container-left {
240+
flex-basis: 50%;
241+
}
242+
240243
.ui5-shellbar-menu-button {
241244
white-space: nowrap;
242245
overflow: hidden;
@@ -276,7 +279,7 @@ slot[name="profile"] {
276279

277280
.ui5-shellbar-overflow-container-right .ui5-shellbar-overflow-container-right-child {
278281
display: flex;
279-
float: right;
282+
justify-content: flex-end;
280283
}
281284

282285
.ui5-shellbar-overflow-button {
@@ -360,9 +363,10 @@ slot[name="profile"] {
360363
}
361364

362365
.ui5-shellbar-search-field {
363-
width: 240px;
366+
flex-grow: 1;
364367
min-width: 240px;
365368
margin-left: 0.5rem;
369+
max-width: 25rem;
366370
}
367371

368372
.ui5-shellbar-search-full-width-wrapper .ui5-shellbar-search-full-field {

0 commit comments

Comments
 (0)