From f466fe721885877d473e66d22caef060919524ea Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 24 Apr 2016 20:50:27 -0700 Subject: Styling work --- ext/fg/css/frame.css | 10 ++++------ ext/fg/js/client.js | 4 +++- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'ext/fg') diff --git a/ext/fg/css/frame.css b/ext/fg/css/frame.css index ace8aae1..832e189a 100644 --- a/ext/fg/css/frame.css +++ b/ext/fg/css/frame.css @@ -43,18 +43,16 @@ body { display: inline-block; } -.kanji { - background-color: #eee; - display: inline-block; +.kanji-glyph { font-family: "KanjiStrokeOrders"; font-size: 140px; line-height: 140px; vertical-align: top; } -.readings { - display: inline-block; - vertical-align: top; +.kanji-info { + float: left; + display: inline-block; } .tag { diff --git a/ext/fg/js/client.js b/ext/fg/js/client.js index 2355cf81..fdb46acb 100644 --- a/ext/fg/js/client.js +++ b/ext/fg/js/client.js @@ -82,7 +82,9 @@ class Client { displayKanji: this.displayKanji }; - handlers[action].call(this, data); + if (handlers.hasOwnProperty(action)) { + handlers[action].call(this, data); + } } searchAt(point) { -- cgit v1.2.3