New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option for vertically stacked reading pane #2243
Add option for vertically stacked reading pane #2243
Conversation
we need this badly.., can someone please review this Mr? |
Wow thanks for picking this up @Phylu! Will look at this first thing tomorrow after I check out your other PR :-) |
@bengotow Thanks for that. :) In the meantime I also had the idea of it is possible to make the border between the mail list and the reading pane draggable to set the size of the different parts instead of having it 50/50 hardcoded. What do you think? If you have an idea on where to add that, please let me know. |
@bengotow I also noticed, that the shortcuts (e.g. Del to delete an e-mail via the thread list) is not working anymore if the vertical stacked thread list is selected. Unfortunately, I was not able to figure out yet how to ensure that the events are correctly forwarded to the place where they are expected/needed. |
Hey @Phylu! Sorry for the delay reviewing this one - I'm pretty impressed you got this mostly working with so little code, wrapping the ThreadList and MessageList within a new component is a nice solution. I think the problem you're seeing is that defining the I think this actually really close though - instead of creating a new ThreadListVertical column in the new mode, you can scope down the existing ThreadList registration to just Here's a branch where I made that change to test and it looks like it's working if you want to apply those changes here! 944eeeb. The only other thing in there (beside formatting changes) is that I explicitly rendered the MessageList.Toolbar location in the new vertical view so you get that row of buttons above the message. I really like your idea of being able to drag a divider to make the sections change size - that's definitely the first thing people will ask for once they see this! 🙈 There's actually a component called "ResizableRegion" in the mailspring-component-kit that implements some drag-to-resize-a-div logic, but I'm not sure there's anywhere in the app where we use it vertically. The Sheet component uses it here if you want to copy this and give it a spin! |
…tical-reading-pane' into feature/vertical-reading-pane
Hi @bengotow, thanks a lot for the help with that. I am going to check out your suggestion and update the PR accordingly. I will probably drop the resizing functionaliy for this PR and do it in another one to have the possibility to ship the feature as soon as possible as it was asked for quite often. |
@bengotow I managed to get the resize functionality running. However, when no e-mail is selected, it does not work properly on my machine. I can see that the |
This seems to be resolved with the electron update. I have therefore cleaned up the PR and it should be good to merge now. |
Hooray! Thanks @Phylu - I'll tweak this a tiny bit as we prepare for the next release and see if I can make a new image for the settings panel that illustrates the vertical split. Excited to get this shipped! |
Nice. @bengotow Feel free to do any additions that are needed for the next release. Let me know if there is anything else the I can contribute to this issue of needed. |
This resolves #116 by adding the option to enable a vertical reading pane.