dock-window-preview icon indicating copy to clipboard operation
dock-window-preview copied to clipboard

Small UX improvements

Open t1m0thyj opened this issue 1 year ago • 2 comments

  1. Add ellipsis to preview caption text

    Before image

    After image

  2. Skip preview for unknown windows like Chrome find bar

    image
  3. ~~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.~~

t1m0thyj avatar Jan 27 '24 05:01 t1m0thyj

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?

PepsRyuu avatar Feb 07 '24 19:02 PepsRyuu