# HG changeset patch # User drewp@bigasterisk.com # Date 1497137900 0 # Node ID d8ccc0df69dec856254502e8a53382a06e4a49c3 # Parent 71ee518b18bf1af3eafdb585ad45cef8ded66ee1 edit-choice use resource display, unlink button Ignore-this: a0bd52abc48cb9861416ab39ca923331 diff -r 71ee518b18bf -r d8ccc0df69de light9/web/edit-choice.coffee --- a/light9/web/edit-choice.coffee Sat Jun 10 23:36:09 2017 +0000 +++ b/light9/web/edit-choice.coffee Sat Jun 10 23:38:20 2017 +0000 @@ -51,6 +51,7 @@ ] ready: -> + @uri = null setupDrop @$.box, @$.box, null, (uri) => @uri=uri @updateLabel() @@ -64,3 +65,6 @@ catch @uri + unlink: -> + @uri = null + diff -r 71ee518b18bf -r d8ccc0df69de light9/web/edit-choice.html --- a/light9/web/edit-choice.html Sat Jun 10 23:36:09 2017 +0000 +++ b/light9/web/edit-choice.html Sat Jun 10 23:38:20 2017 +0000 @@ -1,4 +1,5 @@ + @@ -7,9 +8,11 @@ #box { display: inline-block; background: #141448; + min-width: 10em; } #box.dragging { background: rgba(126, 52, 245, 0.0784313725490196); + box-shadow: 0 0 20px #ffff00; } a { color: #8e8eff; @@ -18,12 +21,11 @@ font-size: 145%; } -
- - {{label}} - + Effect: + +
diff -r 71ee518b18bf -r d8ccc0df69de light9/web/resource-display.html --- a/light9/web/resource-display.html Sat Jun 10 23:36:09 2017 +0000 +++ b/light9/web/resource-display.html Sat Jun 10 23:38:20 2017 +0000 @@ -14,7 +14,10 @@ zpadding: 2px; } - {{label}} + + + {{label}} +