You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-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.
9 years ago
..
attachment_preview_view.js Normalize views' template fetching pattern 10 years ago
attachment_view.js Add attachment_views_test.js tests 9 years ago
confirmation_dialog_view.js Dedupe modal styles 10 years ago
contact_list_view.js Normalize views' template fetching pattern 10 years ago
conversation_list_item_view.js Reduce unnecessary updates on conversations at startup 9 years ago
conversation_list_view.js Remove log message 9 years ago
conversation_search_view.js Add a few missing translatable strings to conversation search view 9 years ago
conversation_view.js Rework expiring messages management 9 years ago
debug_log_view.js Add link to github on debug log 10 years ago
error_view.js i18n KeyConflictView 10 years ago
file_input_view.js Increase image constraints to 6 MB / 4096 px 9 years ago
group_member_list_view.js Remove unusued event handlers 10 years ago
group_update_view.js Remove erroneous license file and headers 10 years ago
hint_view.js Add hint for users with no groups or contacts 10 years ago
identicon_svg_view.js Fix svg icon colors 9 years ago
inbox_view.js Make search clear button ("x") persist w/o hover 9 years ago
install_view.js Confirm device name with enter key 9 years ago
key_conflict_dialogue_view.js Switch from fingerprints to safety numbers 9 years ago
key_verification_view.js Hide verification QR code 9 years ago
list_view.js Remove unused code 10 years ago
message_detail_view.js Localized the message detail view's timestamps 9 years ago
message_list_view.js Fix message insertion for the first element inserted 9 years ago
message_view.js Rework expiring messages management 9 years ago
new_group_update_view.js DRY up group update sending 10 years ago
phone-input-view.js Fix standalone registration 10 years ago
recipients_input_view.js Simplify event arguments 10 years ago
recorder_view.js Add voice notes 9 years ago
settings_view.js Add an option to play audio notifications 9 years ago
timestamp_view.js Fixed bubble timestamp update timer breakdown 9 years ago
toast_view.js Generalize toast view template 9 years ago
whisper_view.js Support i18n with multiple links 9 years ago