signal-desktop/js
alecglassford ef4b4da2a3 Make search clear button ("x") persist w/o hover
This makes the "x" in the search bar always visible when there is
text in the search box, even if the mouse is not hovering, hopefully
making for a clearer UI around search and resolving issue #741

The implementation adds the "x.svg" as a background image to the search
box when it is classed with .active, in addition to the
-webkit-search-cancel-button, which is still there for the actual
functionality but only appears on mouse hover (one tiny snag is that
coloring appears slightly different on hover, at least on my screen -
don't know if this is a problem).

I accounted for both ltr and rtl text-direction by using
getComputedStyle(...).direction to detect from the input's dir="auto"
- if there's a more elegant way to do this, please suggest. An ideal
solution would use the :dir pseudo-class but it's not implemented
in Chrome yet - https://developer.mozilla.org/en-US/docs/Web/CSS/:dir

For now, I added the direction-checking to inbox_view.js. I see that
input.search is also used in new_group_update_view.js and
recipient_input_view.js but neither of these views seem to be in use (?)
and they don't set the .active class anyway, so I ignored them.

Update: Amended version a few hours later - fixed and manually tested
color and spacing for iOS and Android Dark themes. Also made some new
SASS variables to make things DRYer and fixed my tab size.
2017-04-08 00:06:48 -07:00
..
models Rework expiring messages management 2017-02-22 16:18:01 -08:00
views Make search clear button ("x") persist w/o hover 2017-04-08 00:06:48 -07:00
background.js Don't hardcode the attachment server url 2017-03-10 15:24:19 -08:00
chromium.js Drop chrome.runtime.onMessage events 2017-02-28 11:49:56 -08:00
components.js Update libphonenumber 2016-10-30 19:49:14 +09:00
conversation_controller.js Ensure that expired messages are removed from the frontend 2016-09-28 17:20:02 -07:00
conversation_panel.js Remove erroneous license file and headers 2015-09-07 14:58:42 -07:00
database.js Remove unused object store reference 2017-03-04 17:57:32 -08:00
debugLog.js Fix minor style errors 2016-02-18 13:45:22 -08:00
delivery_receipts.js Remove spurious update to conversation on delivery receipts 2017-02-22 15:41:12 -08:00
emoji_util.js Fix search tests 2016-09-01 14:01:51 -07:00
expire.js Add build support for expiring old releases 2016-04-03 20:55:53 -07:00
expiring_messages.js Fix timers after suspend/resume/pause 2017-03-01 14:36:40 -08:00
index.js Remove refs to appWindow 2016-10-07 11:02:26 +09:00
libphonenumber-util.js Refactor number parsing and validation 2015-12-09 18:58:51 -08:00
libsignal-protocol-worker.js Update libsignal-protocol v1.0.0 2016-06-14 16:27:34 -07:00
libtextsecure.js Handle unknown request types 2017-04-07 19:35:25 -07:00
Mp3LameEncoder.min.js Add voice notes 2016-08-23 16:16:31 -07:00
notifications.js Add an option to play audio notifications 2017-02-02 09:00:14 -06:00
options.js Refactor registration event 2016-09-20 13:42:33 -07:00
panel_controller.js Clear window attention if all messages are marked read 2016-04-14 11:57:56 -07:00
read_receipts.js Use read receipt envelope to infer startExpirationTime 2016-09-28 17:20:02 -07:00
register.js Fix minor style errors 2016-02-18 13:45:22 -08:00
registration.js Refactor registration event 2016-09-20 13:42:33 -07:00
rotate_signed_prekey_listener.js Fix timers after suspend/resume/pause 2017-03-01 14:36:40 -08:00
signal_protocol_store.js Log session deletions 2017-02-28 11:29:26 -08:00
storage.js Log on failure to fetch storage 2016-08-11 12:22:32 -07:00
wall_clock_listener.js Fix timers after suspend/resume/pause 2017-03-01 14:36:40 -08:00
WebAudioRecorderMp3.js Add voice notes 2016-08-23 16:16:31 -07:00