mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
gap has its own view now
This commit is contained in:
parent
0a6c50b3bb
commit
5feca5e0f4
@ -25,15 +25,6 @@ function renderTile(tile) {
|
||||
switch (tile.shape) {
|
||||
case "message":
|
||||
return html.li(null, [html.strong(null, tile.internalId+" "), tile.label]);
|
||||
case "gap": {
|
||||
const button = html.button(null, (tile.isUp ? "🠝" : "🠟") + " fill gap");
|
||||
const handler = () => {
|
||||
tile.fill();
|
||||
button.removeEventListener("click", handler);
|
||||
};
|
||||
button.addEventListener("click", handler);
|
||||
return html.li(null, [html.strong(null, tile.internalId+" "), button]);
|
||||
}
|
||||
case "announcement":
|
||||
return html.li(null, [html.strong(null, tile.internalId+" "), tile.label]);
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user