mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 22:36:18 +08:00
FIX: edit category tags select-kit inputs width were wrong (#6568)
This commit is contained in:
parent
f84255e71b
commit
fdad24e2e4
|
@ -39,7 +39,9 @@ export default SelectKitComponent.extend({
|
||||||
@on("didRender")
|
@on("didRender")
|
||||||
_setChoicesMaxWidth() {
|
_setChoicesMaxWidth() {
|
||||||
const width = this.$body().outerWidth(false);
|
const width = this.$body().outerWidth(false);
|
||||||
|
if (width > 0) {
|
||||||
this.$(".choices").css({ maxWidth: width });
|
this.$(".choices").css({ maxWidth: width });
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@on("didReceiveAttrs")
|
@on("didReceiveAttrs")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user