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
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
..
models Rework expiring messages management 9 years ago
views Make search clear button ("x") persist w/o hover 9 years ago
Mp3LameEncoder.min.js Add voice notes 9 years ago
WebAudioRecorderMp3.js Add voice notes 9 years ago
background.js Don't hardcode the attachment server url 9 years ago
chromium.js Drop chrome.runtime.onMessage events 9 years ago
components.js Update libphonenumber 9 years ago
conversation_controller.js Ensure that expired messages are removed from the frontend 9 years ago
conversation_panel.js
database.js Remove unused object store reference 9 years ago
debugLog.js
delivery_receipts.js Remove spurious update to conversation on delivery receipts 9 years ago
emoji_util.js Fix search tests 9 years ago
expire.js Add build support for expiring old releases 10 years ago
expiring_messages.js Fix timers after suspend/resume/pause 9 years ago
index.js Remove refs to appWindow 9 years ago
libphonenumber-util.js
libsignal-protocol-worker.js Update libsignal-protocol v1.0.0 9 years ago
libtextsecure.js Handle unknown request types 9 years ago
notifications.js Add an option to play audio notifications 9 years ago
options.js Refactor registration event 9 years ago
panel_controller.js Clear window attention if all messages are marked read 10 years ago
read_receipts.js Use read receipt envelope to infer startExpirationTime 9 years ago
register.js
registration.js Refactor registration event 9 years ago
rotate_signed_prekey_listener.js Fix timers after suspend/resume/pause 9 years ago
signal_protocol_store.js Log session deletions 9 years ago
storage.js Log on failure to fetch storage 9 years ago
wall_clock_listener.js Fix timers after suspend/resume/pause 9 years ago