right-sidebar: Improve keyboard shortcuts icon styling.

* Eliminate unnecessary div element wrapping around the icon and
change jQuery selectors accordingly
* Set initial position through CSS instead of JS
* Set color to inherit to prevent night mode issues.
This commit is contained in:
Cynthia Lin
2018-08-19 14:18:51 -07:00
committed by Tim Abbott
parent e7311cdf5d
commit 1ab4d08258
5 changed files with 9 additions and 15 deletions

View File

@@ -219,11 +219,6 @@ function initialize_kitchen_sink_stuff() {
timerender.set_full_datetime(message, time_elem);
});
// compose-content padding = icon bottom to make keyboard popover shortcut
// vertically aligned with the compose box
$('#sidebar-keyboard-shortcuts #keyboard-icon').css('bottom',
parseInt($(".compose-content").css("paddingBottom"), 10));
$('#streams_header h4').tooltip({placement: 'right',
animation: false});