Hello Tiddlywikians,
I want to ask the community for help if someone’s interested as this pull request is difficult to get right.
With this pull request I’d like to add a resizer that changes the width of the story-river / sidebar and a resizer that changes the width of the tiddler editor / preview.
Here’s the preview of the current state: https://deploy-preview-8663--tiddlywiki-previews.netlify.app/
What I’d be interested in is bug reports and feedback.
- Is there a strange behavior, something that irritates you?
- Does something not work as expected?
- Are there jumps during drag - especially in edge cases like when reaching the maximum width or minimum width?
What needs to be taken into account is that fluid-fixed sidebarlayout and fixed-fluid sidebarlayout work differently and fixed-fluid is by far more complicated as it uses more metrics and the inner calculations therefor use more variables.
That’s why fixed-fluid mode needs more testing, but fluid-fixed mode should also be well tested.
You can also change themes in the Control Panel and test if everything works as expected also with the different themes like tight
or centralised
.
What should also be tested is the behavior when the sidebar is at the left - you can set that in the Control Panel > Appearance > Theme Tweaks > Sidebar position.
There are also adjustments for html dir="rtl"
… to test this, you could open the developer console and add dir="rtl"
to the wiki’s <html>
tag.
What I hope is that this PR is useful and could in some form make it into the core.
There are some discussions about pointer capture
which has the potential to make some parts easier and more performant but big parts of this PR can be seen as groundwork for a potential future solution.
Note that everything in this PR is pure wikitext without changing any Javascript.
Thank you for your interest, your comments, bug reports and feedback,
Simon