mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
removes select-box minWidth property
Using css offers more flexibility
This commit is contained in:
parent
ca58a8228c
commit
633d2fde45
@ -41,7 +41,6 @@ export default Ember.Component.extend({
|
|||||||
selectBoxHeaderComponent: "select-box/select-box-header",
|
selectBoxHeaderComponent: "select-box/select-box-header",
|
||||||
selectBoxCollectionComponent: "select-box/select-box-collection",
|
selectBoxCollectionComponent: "select-box/select-box-collection",
|
||||||
|
|
||||||
minWidth: 220,
|
|
||||||
collectionHeight: 200,
|
collectionHeight: 200,
|
||||||
verticalOffset: 0,
|
verticalOffset: 0,
|
||||||
horizontalOffset: 0,
|
horizontalOffset: 0,
|
||||||
@ -167,8 +166,6 @@ export default Ember.Component.extend({
|
|||||||
this._removeFixedPosition();
|
this._removeFixedPosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$().css("min-width", this.get("minWidth"));
|
|
||||||
|
|
||||||
const computedWidth = this.$().outerWidth(false);
|
const computedWidth = this.$().outerWidth(false);
|
||||||
const computedHeight = this.$().outerHeight(false);
|
const computedHeight = this.$().outerHeight(false);
|
||||||
|
|
||||||
|
@ -16,8 +16,6 @@ export default DropdownSelectBoxComponent.extend({
|
|||||||
showFullTitle: true,
|
showFullTitle: true,
|
||||||
fullWidthOnMobile: true,
|
fullWidthOnMobile: true,
|
||||||
|
|
||||||
minWidth: "auto",
|
|
||||||
|
|
||||||
@on("init")
|
@on("init")
|
||||||
_setInitialNotificationLevel() {
|
_setInitialNotificationLevel() {
|
||||||
this.set("value", this.get("topic.details.notification_level"));
|
this.set("value", this.get("topic.details.notification_level"));
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 34px;
|
height: 34px;
|
||||||
|
min-width: 220px;
|
||||||
|
|
||||||
&.small {
|
&.small {
|
||||||
height: 28px;
|
height: 28px;
|
||||||
|
Loading…
Reference in New Issue
Block a user