From 6baff41d8e944de42bbf15b2e629464a397edecf Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Mon, 12 Mar 2018 09:55:29 +0900 Subject: [PATCH] Add tooltips --- assets/list.js | 5 ++++ assets/shell.js | 2 +- views/layouts/main.handlebars | 28 +++++++++++++--------- views/partials/toolbar.handlebars | 40 ++++++++++++++++--------------- views/shell.handlebars | 8 +++---- 5 files changed, 48 insertions(+), 35 deletions(-) create mode 100644 assets/list.js diff --git a/assets/list.js b/assets/list.js new file mode 100644 index 0000000..9d88772 --- /dev/null +++ b/assets/list.js @@ -0,0 +1,5 @@ +/* jshint esversion: 6 */ + +$(document).ready(() => { + $("[title]").tooltip(); +}); diff --git a/assets/shell.js b/assets/shell.js index 0136edb..2aa6cc7 100644 --- a/assets/shell.js +++ b/assets/shell.js @@ -49,7 +49,7 @@ $(document).ready(() => { window.term = term; term.decorate(document.getElementById("shell")); // force custom size - $shell.find("iframe").css("height", "calc(100% - 52px * 2)"); + $shell.find("iframe").css("height", "calc(100% - 56px * 2)"); term.setCursorPosition(0, 0); term.setCursorVisible(true); diff --git a/views/layouts/main.handlebars b/views/layouts/main.handlebars index e2657ef..904e4e9 100644 --- a/views/layouts/main.handlebars +++ b/views/layouts/main.handlebars @@ -4,23 +4,29 @@ File Manager + - + - - - - - - - - - - + + + + + + + + + + + + + + + diff --git a/views/partials/toolbar.handlebars b/views/partials/toolbar.handlebars index b0fc563..ef499ac 100644 --- a/views/partials/toolbar.handlebars +++ b/views/partials/toolbar.handlebars @@ -1,42 +1,44 @@ -