jellyfin-archive / jellyfin-desktop

Desktop Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
180 stars 45 forks source link

Drag and move window #28

Closed MeLThRoX closed 4 years ago

MeLThRoX commented 4 years ago

There is no way (at least I haven't found any) to move the window by dragging with the mouse.

igoro00 commented 4 years ago

There is one way: expand the window from one side and shrink from another.

JonEllis commented 4 years ago

You can make the header draggable if you add these styles to your Jellyfin instance ("Custom CSS" under "General" Settings):

.skinHeader { -webkit-app-region: drag; }
.skinHeader button { -webkit-app-region: no-drag; }

The first line makes Electron consider the header a draggable item for moving dragging the window around. The second line prevents the buttons within the header from causing the window to be dragged around.

You ought to be able to modify the selectors to make whatever bit of the UI draggable to move the window around.

Solutions from within this app seem rather hacky as they involve shoe-horning in the styles.

JustAMan commented 4 years ago

cc @cromefire

cromefire commented 4 years ago

Yeah I'll probably restore the windows bar. I'm currently still migrating stuff to ts.

But yes I know about that issue and it's hard to fix with css, because the bar is not visible from the player for example

cromefire commented 4 years ago

Duplicate of #11