dock-window-preview
dock-window-preview copied to clipboard
Small UX improvements
-
Add ellipsis to preview caption text
Before
After
-
Skip preview for unknown windows like Chrome find bar
-
~~Hide preview when dock icon is clicked~~
// We want to hide the preview if you click anywhere outside of the preview. // The only exception is if we're clicking on the dock, otherwise it will flicker // the preview and show it again.
~~I removed the block of code associated with this comment and now the preview hides as expected. I haven't seen any flickering issues so far but am probably missing something.~~
Can you expand on issue number 3 there?
To explain the thought process behind this block of code:
- Move mouse over dock app icon, preview appears.
- Click on dock app icon, preview disappears.
- Move mouse slightly on the same dock icon, preview reappears.
- Typical mouse movement would involve a click and slight movement of the mouse to interact with the app, therefore causing a flicker.
So the idea is that if you're on the dock, we just disable the hide function entirely. Are you experiencing something different?