stuff
This commit is contained in:
parent
f52ac0d328
commit
9c6e55bcfd
|
@ -363,6 +363,9 @@ img:not([src]), img[src=""], img[src="null"] {
|
|||
[REPLACE_CLASS_hovercardhorizontal] {
|
||||
flex-direction: row;
|
||||
}
|
||||
[REPLACE_CLASS_hovercardhorizontal] > [REPLACE_CLASS_flexchild] + [REPLACE_CLASS_flexchild] {
|
||||
margin-left: 8px;
|
||||
}
|
||||
[REPLACE_CLASS_hovercarddisabled] {
|
||||
opacity: 0.7;
|
||||
filter: grayscale(0.2);
|
||||
|
|
|
@ -372,7 +372,6 @@ module.exports = (_ => {
|
|||
placeholder: locationName,
|
||||
size: BDFDB.LibraryComponents.TextInput.Sizes.MINI,
|
||||
maxLength: 100000000000000000000,
|
||||
style: {marginRight: 6},
|
||||
disabled: !editable,
|
||||
onChange: !editable ? null : value => {
|
||||
ownLocations[value] = ownLocations[locationName];
|
||||
|
@ -388,7 +387,6 @@ module.exports = (_ => {
|
|||
placeholder: ownLocations[locationName].location,
|
||||
size: BDFDB.LibraryComponents.TextInput.Sizes.MINI,
|
||||
maxLength: 100000000000000000000,
|
||||
style: {marginRight: 10},
|
||||
disabled: !editable,
|
||||
onChange: !editable ? null : value => {
|
||||
ownLocations[locationName].location = value;
|
||||
|
|
|
@ -137,14 +137,14 @@ module.exports = (_ => {
|
|||
},
|
||||
onMouseDown: (event, instance) => {
|
||||
event = event.nativeEvent || event;
|
||||
let mousemove = event2 => {
|
||||
let mouseMove = event2 => {
|
||||
if (Math.sqrt((event.pageX - event2.pageX)**2) > 20 || Math.sqrt((event.pageY - event2.pageY)**2) > 20) {
|
||||
BDFDB.ListenerUtils.stopEvent(event);
|
||||
this.draggedGuild = guildId;
|
||||
let dragpreview = _this.createDragPreview(BDFDB.ReactUtils.findDOMNode(instance).cloneNode(true), event2);
|
||||
BDFDB.ReactUtils.forceUpdate(this);
|
||||
document.removeEventListener("mousemove", mousemove);
|
||||
document.removeEventListener("mouseup", mouseup);
|
||||
document.removeEventListener("mousemove", mouseMove);
|
||||
document.removeEventListener("mouseup", mouseUp);
|
||||
let dragging = event3 => {
|
||||
_this.updateDragPreview(dragpreview, event3);
|
||||
let placeholder = BDFDB.DOMUtils.getParent(BDFDB.dotCN._serverfoldersguildplaceholder, event3.target);
|
||||
|
@ -177,12 +177,12 @@ module.exports = (_ => {
|
|||
document.addEventListener("mouseup", releasing);
|
||||
}
|
||||
};
|
||||
let mouseup = _ => {
|
||||
document.removeEventListener("mousemove", mousemove);
|
||||
document.removeEventListener("mouseup", mouseup);
|
||||
let mouseUp = _ => {
|
||||
document.removeEventListener("mousemove", mouseMove);
|
||||
document.removeEventListener("mouseup", mouseUp);
|
||||
};
|
||||
document.addEventListener("mousemove", mousemove);
|
||||
document.addEventListener("mouseup", mouseup);
|
||||
document.addEventListener("mousemove", mouseMove);
|
||||
document.addEventListener("mouseup", mouseUp);
|
||||
}
|
||||
}),
|
||||
this.hoveredGuild != guildId ? null : BDFDB.ReactUtils.createElement("div", {
|
||||
|
|
Loading…
Reference in New Issue