Jérémie Astori
d55420faae
Bind a single resize event, debounced, instead of one handler per preview
2018-04-09 21:39:41 -04:00
Jérémie Astori
ac02bd370b
Do not compute preview "More" buttons on mobile
2018-04-09 21:39:40 -04:00
Jérémie Astori
dbabdd83dc
Lighten the "More" button handler when checks are not necessary
2018-04-09 21:39:40 -04:00
Jérémie Astori
8d255fc331
Only bind preview "More" buttons on link previews
2018-04-09 21:39:40 -04:00
Jérémie Astori
1ccdeb015c
Trigger the correct event directly instead of resize when opening/closing a menu
2018-04-09 21:39:39 -04:00
Jérémie Astori
53a2101de3
Make sure preview "More" button computation does nothing when preview is collapsed
2018-04-09 21:39:39 -04:00
Jérémie Astori
5bff07f6f6
Fix handling preview More buttons on inactive channels
2018-04-09 21:39:38 -04:00
Jérémie Astori
527cac4c75
Debounce resize event to avoid performance bottleneck
2018-04-09 21:39:38 -04:00
Jérémie Astori
7355db94d6
Improve UI of previews
...
- Remove margins around thumbnails and images, increase radius, etc. for a fresher look overall
- Increase preview body contrast just enough to pass AA standards
- Add a `More`/`Less` button to expand previews that take more than one line. Button is added only when necessary
- Use a zoom-in cursor on hover for thumbnails
- Improve preview message errors
2018-04-09 21:39:38 -04:00
Pavel Djundik
c28a5c25b9
Add css-loader
2018-04-06 12:52:53 +03:00
Pavel Djundik
d4b9b6ed32
Fix line-height showing scrollbar on mobile
2018-04-04 12:40:42 +03:00
Jérémie Astori
36a62fb365
Merge pull request #2321 from MaxLeiter/header-margin
...
Fix .container margins
2018-04-01 18:38:07 -04:00
Jérémie Astori
7591088982
Merge pull request #2290 from lol768/feature/join-alias-query-param
...
Add ?channels=x,y,z alias for ?join=x,y,z
2018-03-31 14:05:25 -04:00
Max Leiter
27e4994d10
Fix .container margins
2018-03-31 01:43:27 -07:00
Jérémie Astori
09a6c8b067
Fix autocomplete selection when hitting Enter
2018-03-29 22:04:08 -04:00
Pavel Djundik
8f838b80e7
Remove left padding from sidebar in example theme
2018-03-29 21:46:03 +03:00
Pavel Djundik
2e964d0a7e
Merge pull request #2270 from thelounge/xpaw/mask-image
...
Replace pseudo element gradient fade with mask-image
2018-03-29 21:29:54 +03:00
Jérémie Astori
fe08547d6b
Merge pull request #2289 from lol768/master
...
Add auto-prepend behaviour for unprefixed channel names
2018-03-29 01:19:45 -04:00
Al McKinlay
ce08201d13
Merge pull request #1878 from thelounge/yamanickill/refactor-context-menu
...
Pull context menu code out of lounge.js and make it more generic
2018-03-29 06:04:24 +01:00
Jérémie Astori
7d057a9ca7
Fix bug preventing to click on channels/queries
...
This bug is present both in channel list, #channel in messages, etc.
2018-03-27 19:28:20 -04:00
Al McKinlay
edba18375f
Merge pull request #2286 from thelounge/xpaw/input-history
...
Reimplement input history
2018-03-27 17:38:49 +01:00
Pavel Djundik
a2440e665f
Do not close sidebar when collapsing networks
...
Fixes #2293
2018-03-27 12:07:19 +03:00
Pavel Djundik
3aea9d34e9
Reimplement input history
2018-03-26 11:23:10 +03:00
Pavel Djundik
f856229141
Allow whitespace in topics again
...
Was removed in c051b70537
2018-03-26 11:22:52 +03:00
Pavel Djundik
8ce55af55d
Overflow topics with fade instead of ellipsis
2018-03-26 11:22:52 +03:00
Pavel Djundik
23c969ad1b
Replace pseudo element gradient fade with mask-image
2018-03-26 11:22:52 +03:00
Al McKinlay
1dc356a8f2
Pull context menu code out of lounge.js and make it more generic
...
Add separate call for divider in context menu factory
2018-03-26 09:08:43 +01:00
Adam Williams
25dee77600
Add auto-prepend behaviour for unprefixed channels
...
This change adds behaviour to automatically prefix channel names passed in via the "?join=x,y,z" query string/search parameter which do not appear to include an appropriate channel symbol.
2018-03-24 22:17:32 +00:00
Jérémie Astori
d8eed4d15e
Merge pull request #2282 from thelounge/astorije/accessible-nick-colors
...
Reduce lightness of low contrast nick colors to reach AA level of WCAG 2.0
2018-03-24 15:42:35 -04:00
Adam Williams
950bad1d7a
Add ?channels=x,y,z alias for ?join=x,y,z
...
For backwards compat. with Iris and other systems.
2018-03-24 16:54:26 +00:00
Jérémie Astori
13768a7d28
Merge pull request #2285 from thelounge/xpaw/consistent-as-needed
...
quote-props: consistent-as-needed
2018-03-24 02:29:13 -04:00
Jérémie Astori
0d9eb5d198
Reduce lightness of low contrast nick colors to reach AA level of WCAG 2.0, for Zenburn theme
2018-03-24 02:05:08 -04:00
Pavel Djundik
beb2af73b7
Merge pull request #2284 from thelounge/xpaw/fix-2209
...
Hide autocompletion menu when input is submitted
2018-03-23 22:40:59 +03:00
Pavel Djundik
f82edcd7e7
quote-props: consistent-as-needed
2018-03-23 16:15:59 +02:00
Pavel Djundik
3886c2a82f
Hide autocompletion menu when input is submitted
...
Fixes #2209
2018-03-23 12:20:53 +03:00
Pavel Djundik
051f6c5a7f
Autocomplete bracket and quote characters like in a modern IDE
2018-03-23 12:03:36 +03:00
Jérémie Astori
43be85cee9
Reduce lightness of low contrast nick colors to reach AA level of WCAG 2.0
2018-03-23 01:19:43 -04:00
Pavel Djundik
6f47a78afd
Unfocus input on touch devices to close the keyboard
...
Fixes #2257
2018-03-22 12:47:15 +02:00
Pavel Djundik
0be544676b
Do not condense actions that are performed or related to the user
2018-03-21 14:48:07 +02:00
Jérémie Astori
dbe81f1e59
Merge pull request #2254 from thelounge/astorije/sign-out-settings
...
Empty local storage on sign out and move the sign out button to the settings
2018-03-20 21:06:44 -04:00
Pavel Djundik
528d2b5fb7
Scroll channel list only when using keybinds
2018-03-20 19:27:07 -04:00
Jérémie Astori
d7d8a51332
Merge pull request #2262 from realies/master
...
stop propagation, prevent input history call when alt is involved
2018-03-20 19:23:22 -04:00
realies
72af0a4947
stop propagation, prevent input history call when alt is involved
2018-03-20 21:00:03 +02:00
Pavel Djundik
3c1db1d7d6
Bind formatting hotkeys on input element
...
And bind only one event for all of the hotkeys
2018-03-20 20:57:19 +02:00
Max Leiter
817141a781
Fix typo
2018-03-20 13:35:54 +07:00
Jérémie Astori
d1548572d4
Move the sign out button to the settings and empty local storage on sign out
...
This change improves privacy/security by ensuring all local storage (which includes settings, etc.) is destroyed on sign out or when revoking a remote session. Because signing out is now more "risky", the button has been moved to the settings along with other existing sessions.
This commit:
- Removes the power/sign-out icon from the sidebar footer (gives additional room for when the admin panel gets added)
- Adds a "Sign out" button next to the current session info in the settings session list
- Renames "Disconnect" buttons into "Revoke" to better clarify the intent (I will admit that I borrowed the wording from Telegram)
- Fixes incorrect `localStorage.remove` method
- Uses Sinon.js to mock wrappers for `window.localStorage` and `window.location` (does not mock those themselves, in the "Do not mock what you do not own" fashion, mock our layer instead). I expect we will be able to test a bit more from the UI with this. A good next candidate will be the `mockLogger` things.
2018-03-20 01:52:22 -04:00
Pavel Djundik
5d6ea4f32e
Merge pull request #2251 from thelounge/xpaw/canplay
...
Render video and audio previews only after canplay event fires
2018-03-19 20:08:14 +02:00
Pavel Djundik
77a98bfd14
Render video and audio previews only after canplay event fires
2018-03-19 12:47:36 +02:00
Jérémie Astori
883b6dbef2
Improve readability and styling of shortcut keys in the Help section
2018-03-19 01:45:48 -04:00
Jérémie Astori
8ecacc9978
Merge pull request #2186 from MaxLeiter/emoji-tip
...
Improve accessibility for emoji
2018-03-18 15:50:57 -04:00