From 86767184daca9afee86fe583b089cef3cff45098 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 11 Oct 2017 15:37:11 +0200 Subject: [PATCH 1/2] Fix style issues in poll for Edge --- www/poll/app-poll.less | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/www/poll/app-poll.less b/www/poll/app-poll.less index dd3b3b91f..5ee093b3e 100644 --- a/www/poll/app-poll.less +++ b/www/poll/app-poll.less @@ -83,6 +83,7 @@ input[type="text"][disabled]::placeholder { table#cp-app-poll-table { margin: 0px; + overflow: hidden; } #cp-app-poll-table-container { position: relative; @@ -235,22 +236,8 @@ div.cp-app-poll-realtime { background-color: @poll-uncommitted-cell !important; } div.cp-app-poll-table-text-cell { - display: flex; - align-items: center; background-color: @poll-uncommitted-bg !important; color: @poll-uncommitted-text !important; - input { - order: 2; - flex: 1; - //width: ~"calc(100% - 80px)" !important; - //vertical-align: middle; - } - .cp-app-poll-table-remove { - order: 1; - } - .cp-app-poll-table-edit { - order: 3; - } } text-align: center; background-color: @poll-uncommitted-bg !important; @@ -292,9 +279,17 @@ div.cp-app-poll-realtime { margin: 0px; height: 100%; + display: flex; + align-items: center; + .cp-app-poll-table-remove { + order: 1; + } + .cp-app-poll-table-edit { + order: 3; + } input { - width: 80%; - width: 90%; + order: 2; + flex: 1; height: 100%; border: 0px; margin: 2px; From 54b5a2d6544af9691d019aa2a7e7d75e24d71fad Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 11 Oct 2017 16:01:26 +0200 Subject: [PATCH 2/2] Fix style issues in poll (Chrome) --- www/poll/app-poll.less | 10 +++++----- www/poll/inner.js | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/www/poll/app-poll.less b/www/poll/app-poll.less index 5ee093b3e..7d2cf1216 100644 --- a/www/poll/app-poll.less +++ b/www/poll/app-poll.less @@ -28,7 +28,7 @@ @poll-uncommitted-bg: #ddd; //lighten(@poll-th-bg, 50%); @poll-uncommitted-text: black; -@poll-placeholder: #666; +@poll-placeholder: #fff; @poll-border-color: #555; @poll-cover-color: #000; @poll-fg: #000; @@ -77,7 +77,7 @@ input[type="text"][disabled], textarea[disabled] { // The placeholder color only seems to effect Safari when not set input[type="text"][disabled]::placeholder { - //color: @poll-placeholder; + color: @poll-placeholder; opacity: 1; } @@ -275,10 +275,9 @@ div.cp-app-poll-realtime { margin: 0px; div.cp-app-poll-table-text-cell { + height: 28px; padding: 0px; margin: 0px; - height: 100%; - display: flex; align-items: center; .cp-app-poll-table-remove { @@ -288,9 +287,10 @@ div.cp-app-poll-realtime { order: 3; } input { + min-width: 0; order: 2; flex: 1; - height: 100%; + height: 24px; border: 0px; margin: 2px; &[disabled] { diff --git a/www/poll/inner.js b/www/poll/inner.js index c2da2e8ea..b6811dc80 100644 --- a/www/poll/inner.js +++ b/www/poll/inner.js @@ -264,7 +264,7 @@ define([ }; var styleUncommittedColumn = function () { var $scroll = $('#cp-app-poll-table-scroll'); - var hasScroll = $scroll.width() < $scroll[0].scrollWidth; + var hasScroll = $scroll.width() < $scroll[0].scrollWidth && $scroll.width() > 100; APP.uncommitted.content.colsOrder.forEach(function(id) { // Enable the checkboxes for the uncommitted column enableColumn(id); @@ -331,7 +331,7 @@ define([ }; var addCount = function () { var $scroll = $('#cp-app-poll-table-scroll'); - var hasScroll = $scroll.width() < $scroll[0].scrollWidth; + var hasScroll = $scroll.width() < $scroll[0].scrollWidth && $scroll.width() > 100; var $countCol = $('tr td:last-child'); if (hasScroll) { $countCol.css('right', '0');