Skip to content

Commit 1e8082d

Browse files
authored
fix(ui5-input): ValueStateMessage width fixed (#2736)
* fix(ui5-input): ValueStateMessage width fixed * Lint checks passed
1 parent 5a872b0 commit 1e8082d

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

packages/main/src/Input.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ class Input extends UI5Element {
11041104
get styles() {
11051105
return {
11061106
popoverHeader: {
1107-
"width": `${this._inputWidth}px`,
1107+
"max-width": `${this._inputWidth}px`,
11081108
},
11091109
suggestionPopoverHeader: {
11101110
"display": this._listWidth === 0 ? "none" : "inline-block",

packages/main/src/InputPopover.hbs

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
no-arrow
7272
class="ui5-valuestatemessage-popover"
7373
placement-type="Bottom"
74+
horizontal-align="Left"
7475
>
7576
<div slot="header" class="{{classes.popoverValueState}}" style="{{styles.popoverHeader}}">
7677
{{> valueStateMessage}}

packages/main/src/MultiComboBox.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ class MultiComboBox extends UI5Element {
882882
"padding": "0.9125rem 1rem",
883883
},
884884
popoverHeader: {
885-
"width": `${this._inputWidth}px`,
885+
"max-width": `${this._inputWidth}px`,
886886
},
887887
};
888888
}

packages/main/src/MultiComboBoxPopover.hbs

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
no-arrow
9999
class="ui5-valuestatemessage-popover"
100100
placement-type="Bottom"
101+
horizontal-align="Left"
101102
>
102103
<div slot="header" class="{{classes.popoverValueState}}" style="{{styles.popoverHeader}}">
103104
{{> valueStateMessage}}

0 commit comments

Comments
 (0)