diff --git a/src/General/Index.coffee b/src/General/Index.coffee index df6d138d7..c7df36a5f 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -146,14 +146,17 @@ Index = return if g.VIEW isnt 'index' or !Conf['JSON Navigation'] or !Conf['Menu'] or !Conf['Thread Hiding Link'] or g.BOARD.ID is 'f' Menu.menu.addEntry - el: $.el 'a', href: 'javascript:;' + el: $.el 'a', + href: 'javascript:;' + className: 'has-shortcut-text' + , <%= html('Shift+click') %> order: 20 open: ({thread}) -> return false if Conf['Index Mode'] isnt 'catalog' - @el.textContent = if thread.isHidden - 'Unhide thread' + @el.firstElementChild.textContent = if thread.isHidden + 'Unhide' else - 'Hide thread' + 'Hide' $.off @el, 'click', @cb if @cb @cb = -> $.event 'CloseMenu' diff --git a/src/Monitoring/ThreadWatcher.coffee b/src/Monitoring/ThreadWatcher.coffee index 64a629868..997d852a9 100644 --- a/src/Monitoring/ThreadWatcher.coffee +++ b/src/Monitoring/ThreadWatcher.coffee @@ -42,14 +42,17 @@ ThreadWatcher = if g.VIEW is 'index' and Conf['JSON Navigation'] and Conf['Menu'] and g.BOARD.ID isnt 'f' Menu.menu.addEntry - el: $.el 'a', href: 'javascript:;' + el: $.el 'a', + href: 'javascript:;' + className: 'has-shortcut-text' + , <%= html('Alt+click') %> order: 6 open: ({thread}) -> return false if Conf['Index Mode'] isnt 'catalog' - @el.textContent = if ThreadWatcher.isWatched thread - 'Unwatch thread' + @el.firstElementChild.textContent = if ThreadWatcher.isWatched thread + 'Unwatch' else - 'Watch thread' + 'Watch' $.off @el, 'click', @cb if @cb @cb = -> $.event 'CloseMenu' diff --git a/src/css/style.css b/src/css/style.css index eb01cefcf..d147f09f1 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -1703,6 +1703,16 @@ a:only-of-type > .remove { position: relative; top: 2px; } +.entry.has-shortcut-text { + display: flex; + justify-content: space-between; + align-items: center; +} +.entry .shortcut-text { + opacity: 0.5; + font-size: 70%; + margin-left: 5px; +} .has-submenu::after { content: ""; border-left: .5em solid;