signal-desktop/js/views
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
..
attachment_preview_view.js Normalize views' template fetching pattern 2015-12-09 18:58:52 -08:00
attachment_view.js Add attachment_views_test.js tests 2017-02-06 21:23:35 -08:00
confirmation_dialog_view.js Dedupe modal styles 2016-02-19 17:34:59 -08:00
contact_list_view.js Normalize views' template fetching pattern 2015-12-09 18:58:52 -08:00
conversation_list_item_view.js Reduce unnecessary updates on conversations at startup 2017-02-22 01:22:44 -08:00
conversation_list_view.js Remove log message 2016-10-05 19:09:21 +09:00
conversation_search_view.js Add a few missing translatable strings to conversation search view 2017-02-03 20:48:05 -08:00
conversation_view.js Rework expiring messages management 2017-02-22 16:18:01 -08:00
debug_log_view.js Add link to github on debug log 2016-04-09 20:55:21 -07:00
error_view.js i18n KeyConflictView 2016-01-02 02:51:25 -08:00
file_input_view.js Increase image constraints to 6 MB / 4096 px 2017-02-08 17:05:33 -08:00
group_member_list_view.js Remove unusued event handlers 2016-03-23 15:06:23 -07:00
group_update_view.js Remove erroneous license file and headers 2015-09-07 14:58:42 -07:00
hint_view.js Add hint for users with no groups or contacts 2015-11-27 22:26:56 -08:00
identicon_svg_view.js Fix svg icon colors 2016-08-30 18:31:02 -07:00
inbox_view.js Make search clear button ("x") persist w/o hover 2017-04-08 00:06:48 -07:00
install_view.js Confirm device name with enter key 2017-02-06 20:10:40 -08:00
key_conflict_dialogue_view.js Switch from fingerprints to safety numbers 2016-10-05 19:11:39 +09:00
key_verification_view.js Hide verification QR code 2016-10-22 02:24:54 +09:00
list_view.js Remove unused code 2016-01-26 14:56:16 -08:00
message_detail_view.js Localized the message detail view's timestamps 2016-10-27 00:49:04 +02:00
message_list_view.js Fix message insertion for the first element inserted 2016-10-05 22:43:31 +09:00
message_view.js Rework expiring messages management 2017-02-22 16:18:01 -08:00
new_group_update_view.js DRY up group update sending 2015-09-23 16:45:07 -07:00
phone-input-view.js Fix standalone registration 2015-12-10 10:36:14 -08:00
recipients_input_view.js Simplify event arguments 2015-09-21 10:32:35 -07:00
recorder_view.js Add voice notes 2016-08-23 16:16:31 -07:00
settings_view.js Add an option to play audio notifications 2017-02-02 09:00:14 -06:00
timestamp_view.js Fixed bubble timestamp update timer breakdown 2016-10-28 14:26:51 +09:00
toast_view.js Generalize toast view template 2016-09-07 13:04:45 -07:00
whisper_view.js Support i18n with multiple links 2016-09-27 13:34:54 -07:00