djcas9 / komanda

The IRC Client For Developers
http://komanda.io
MIT License
1.78k stars 75 forks source link

Allow the nicklist and the server/channel list to be re-sizable. #120

Open ghost opened 10 years ago

ghost commented 10 years ago

I find the fixed widths to be annoying.

rahatarmanahmed commented 10 years ago

Agreed. While the channel zen mode is nice, there are times when I would just like to shrink the sidebars to not use up so much space while still being able to use them. This applies to my Squelch theme, which doesn't take up as much horizontal space.

Looking at the CSS, some big rewrites will have to be done, as everything seems to be absolutely positioned. Instead it should probably use a flexbox layout. (#180 will need to be merged before rewriting).

To do the resizing, we can use jquery-ui's Resizable.

The size of the sidebars should be stored in localstorage after resizing so that they are remembered after closing Komanda.

One possible issue is that the scrollbars are hugging the edges of the sidebars, and it won't be possible to click and drag the scrollbar handle since the resizable handle click area will cover it. This already happens to the user list scrollbar, so maybe it's a tradeoff we can make.