change wheel

This commit is contained in:
ntr 2019-11-04 22:08:54 +11:00
parent b82dee018a
commit 707b3c6217
2 changed files with 7 additions and 6 deletions

View File

@ -29,6 +29,7 @@ const addState = connect(
} }
function sendVboxAccept(group, index) { function sendVboxAccept(group, index) {
document.activeElement.blur();
return ws.sendVboxAccept(instance.id, group, index); return ws.sendVboxAccept(instance.id, group, index);
} }
@ -217,7 +218,7 @@ class Vbox extends preact.Component {
const vboxObject = shapes[v] ? shapes[v]() : v; const vboxObject = shapes[v] ? shapes[v]() : v;
return ( return (
<label draggable='true' <label draggable='true'
onDragStart={ev => ev.dataTransfer.setData('text', '')} onDragStart={ev => ev.dataTransfer.setData('text', '')}
onDragEnd={clearVboxSelected}> onDragEnd={clearVboxSelected}>
<button <button
@ -325,7 +326,7 @@ class Vbox extends preact.Component {
const highlighted = combiner.indexOf(i) > -1; const highlighted = combiner.indexOf(i) > -1;
const border = buttons[removeTier(v)] ? buttons[removeTier(v)]() : ''; const border = buttons[removeTier(v)] ? buttons[removeTier(v)]() : '';
const classes = `${highlighted ? 'highlight' : border} ${comboHighlight}`; const classes = `${highlighted ? 'highlight' : border} ${comboHighlight}`;
const invObject = shapes[v] ? shapes[v]() : v; const invObject = shapes[v] ? shapes[v]() : v;
return ( return (

View File

@ -67,13 +67,13 @@ pub fn select(db: &Db, id: Uuid) -> Result<Account, Error> {
pub fn chat_wheel(_db: &Db, _id: Uuid) -> Result<Vec<String>, Error> { pub fn chat_wheel(_db: &Db, _id: Uuid) -> Result<Vec<String>, Error> {
return Ok(vec![ return Ok(vec![
"gl".to_string(),
"hf".to_string(),
"gg".to_string(), "gg".to_string(),
"thx".to_string(), "glhf".to_string(),
"nice".to_string(),
"hmm".to_string(), "hmm".to_string(),
"ok".to_string(), "ok".to_string(),
"rekt".to_string(),
"thx".to_string(),
"nice".to_string(),
"...".to_string(), "...".to_string(),
]) ])
} }