From bcc845fec0d0365e7eea6f34c6361a35882f2932 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Fri, 12 Apr 2019 18:13:07 +0200 Subject: [PATCH] - layout adjustments in deploy tab - click on title of the card is opening it - removed shortut info from tooltips untill farther desition - fixed tiny bug on icon panel colors arrow --- .../components/vertical-icons-component.js | 44 +++++++++++++++---- src/app/tabs/runTab/contractDropdown.js | 2 +- src/app/tabs/styles/run-tab-styles.js | 2 + src/app/ui/card.js | 12 +++-- src/framingService.js | 1 - 5 files changed, 43 insertions(+), 18 deletions(-) diff --git a/src/app/components/vertical-icons-component.js b/src/app/components/vertical-icons-component.js index ed5cffb4f7..54659671c2 100644 --- a/src/app/components/vertical-icons-component.js +++ b/src/app/components/vertical-icons-component.js @@ -33,6 +33,11 @@ class VerticalIconComponent { }) this.store.event.on('add', (api) => { }) this.store.event.on('remove', (api) => { }) + + let themeModule = globalRegistry.get('themeModule').api + themeModule.events.on('themeChanged', (type) => { + this.onThemeChanged(type) + }) } stopListenOnStatus (api) { @@ -58,7 +63,7 @@ class VerticalIconComponent { * @param {ModuleProfile} profile The profile of the module */ addIcon ({kind, name, icon, displayName, tooltip}) { - let title = (displayName || name) + " " + tooltip + let title = (displayName || name)// + (tooltip ? tooltip : "") this.icons[name] = yo`
` + this.compFails = yo`` var info = yo`` this.atAddressButtonInput = yo`` diff --git a/src/app/tabs/styles/run-tab-styles.js b/src/app/tabs/styles/run-tab-styles.js index 22cad94489..d0cd577a55 100644 --- a/src/app/tabs/styles/run-tab-styles.js +++ b/src/app/tabs/styles/run-tab-styles.js @@ -12,6 +12,7 @@ var css = csjs` font-size: 12px; display: flex; justify-content: space-between; + padding-left: 15px; } .settings { margin-bottom: 2%; @@ -141,6 +142,7 @@ var css = csjs` .noInstancesText { font-style: italic; text-align: left; + padding-left: 15px; } .pendingTxsText { font-style: italic; diff --git a/src/app/ui/card.js b/src/app/ui/card.js index b0b96589ea..c01bec663e 100644 --- a/src/app/ui/card.js +++ b/src/app/ui/card.js @@ -16,17 +16,15 @@ module.exports = class Card { if (self._view.el) return self._view.el self._view.cardBody = yo`
` - self._view.arrow = yo` trigger(ev.target)}>` + self._view.arrow = yo`` self._view.expandCollapseButton = yo`
${self._view.arrow}
` self._view.statusBar = yo`
${self._opts.collapsedView}
` - self._view.cardHeader = yo` -
-
+
trigger(self._view.arrow)}> +
${self._opts.title}
${self._view.statusBar}
@@ -43,7 +41,7 @@ module.exports = class Card { // HTML self._view.el = yo` -
+
${self._view.cardHeader} ${self._view.cardBody}
` @@ -55,7 +53,7 @@ module.exports = class Card { const css = csjs` .cardContainer { - padding: 10px 15px 15px 0; + padding : 10px 15px 15px 0; margin-bottom : 2%; } .cardHeader { diff --git a/src/framingService.js b/src/framingService.js index 48ba58beb3..7bfbfd066e 100644 --- a/src/framingService.js +++ b/src/framingService.js @@ -14,7 +14,6 @@ export default { verticalIconApi.select('fileExplorers') mainPanelApi.showContent('home') - document.addEventListener('keypress', (e) => { if (e.shiftKey && e.ctrlKey) { if (e.code === 'KeyF') { // Ctrl+Shift+F