From 1427a327eba6a35ba9a98603164184cf03c8309e Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 17 May 2020 18:27:03 +0300 Subject: [PATCH] tweaking... Signed-off-by: Alex A. Naanou --- ui (gen4)/lib/components/ig-image-graph.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ui (gen4)/lib/components/ig-image-graph.js b/ui (gen4)/lib/components/ig-image-graph.js index a67104c5..b6a94d62 100644 --- a/ui (gen4)/lib/components/ig-image-graph.js +++ b/ui (gen4)/lib/components/ig-image-graph.js @@ -487,8 +487,9 @@ object.Constructor('igImageGraph', HTMLElement, { var button = document.createElement('button') button.setAttribute('id', 'orientation-button') button.classList.add('update') - //button.innerHTML = '▥' - button.innerHTML = '↕' + button.innerHTML = '🡑' + button.style.marginTop = '-2px' + //button.innerHTML = '↕' button.disabled = that.graph != 'waveform' var o = that.orientation || 0 button.onclick = function(){ @@ -500,11 +501,13 @@ object.Constructor('igImageGraph', HTMLElement, { : that.orientation == 270 ? 180 : 0 - this.style.transform = 'rotate('+(o == n ? 0 : -90)+'deg)' + // update button orientation... + this.style.transform = 'rotate('+(o == n ? 0 : 90)+'deg)' + this.style.marginTop = o == n ? '-2px' : '-1px' } return button }(), // modes... - (this.nocontrols ? + ...(this.nocontrols ? [] : this.modes) // mode buttons... @@ -535,7 +538,6 @@ object.Constructor('igImageGraph', HTMLElement, { button.onclick = function(){ that.update() } return button }(), ] - .flat() .reverse() .forEach(function(button){ controls.appendChild(button) })