I had a small problem with the above code. When the tiddlerinfo viewtoolbar button is clicked, the thebrain on the right side will overlap the opened tiddlerinfo section like shown in the below image.
Also can I incorporate your side-editor into this tabs for easy editing of tiddlers (If yes, can you suggest how to do it) Side-editor wont work easily with krystal horizontal story view. That why I am thinking in that direction.
Contents of the tab macro include a text editor tab, field tab and revisions tab also.
I cloned the core text editor tiddler and removed the editor toolbar buttons to create Text editor for tabs. Is it ok to do so?
Field tab was taken from Saqâs UI experiments wiki.
Revisions tab is taken from JDâs revisions plug in.
These are just some experiments I am doing. Not my main wiki.
I have some questions
Is it possible to hide the .rightside using some button so that it seen only when the button is pressed. The .tc-tiddler-body shall occupy the entire width of the screen when the .rightside is hidden. Is it possible ? Not an urgent thing. Was just exploring some UI ideas which came to my mind.
Is it possible to hide the .rightside when the wiki is opened in mobile phone. Or is it possible to bring the .rightside to the bottom of the tiddler by using another viewtemplate when the wiki is opened in mobile phone.
z-index thing didnât worked. I will check later once more.
To get the SideEditor into a tab would take some redesigning depending on which aspects of the SideEditor would you want. It is designed to float and be resizable, so Iâm guessing you donât want that, but there is also the âhover featuresâ. And maybe youâre not interested in all the button controls? The more of those things you cut out the easier it should be because it is basically just an EditTextWidget and some buttons. Iâm afraid youâd be the one who experiment with it all but Iâd be happy to assist with specific questions.
One method could be to enclose all of the listwidget content in a revealwidget. You can use a field in the current tiddler to store the state.
Everything is possible but different degrees of fiddling. There is the InfoMechanism to find out what size of screen is used, which you can use as a condition to show one template or the other or no template etc.
<$list filter='[{$:/info/browser/screen/width}compare:integer:lt[1000]]'>
use the small screen template or styling
</$list>
<$list filter='[{$:/info/browser/screen/width}compare:integer:gt[1000]]'>
use the big screen template or styling
</$list>
i.e the info gives the screen width and the compare operator looks if it is less or greater than 1000px (âŚa number I just pulled out of the air)
There are many variants. For example, the ListWidget has an emptyMessage parameter that could be used instead of a second listwidget, i.e to call some macro that does pretty much the same thing as the second listwidget in the example. And if the âeither orâ only concerns pure styling then you could use a CSS media query instead of listwidgets. But the above idea is pretty standard TW handling and easy to construct. The real task is of course to design the actual two templates etc
If it isnât obvious: As much as possible of the templates or styling should be placed outside of the conditional tests, i.e no need to repeat identical content inside both of those listwidget conditionals.
Is there any way I can bring that reveal button to the right most corner.
Can the .tc-tiddler-body occupy the full screen when the .rightside
is hidden by the reveal button and return back to 50% width once the .rightside is revealed by the reveal button
If you put all the previous code inside the revealwidget, is what you request not what is happening? I.e inside the revealwidget, pubt the listwidget with the div+brain + the styleblock.
I believe the content of a revealwidget is only active if the reveal is open.
The button to set the revealstate can have a class (defined outside of the aforementioned styleblock, e.g in a stylseheet or possibly in a separate local styleblock) to float it to the right, just like you did earlier. You can put this button in the code after the revealwidget, to make it be to the right of the revealwidget regardless of if the reveal is open or not.
Yeah, because you want it to reveal/activate when you click the button, right?
What youâre showing doesnât show that you put anything in there - ?
The idea is that you put it in the lower reveal. (Iâm not sure if it is best put above or below the button, it depends on how you style the button to position it.)
This is what actually I want it to look like. The only problem for me now is the position of the button - which I want to be in the right corner. Also the tiddler body should automatically fill the rest of the screen when the button hides the .rightside
I am not understanding what you are trying to say. Can you please show how you want the code to be
Test the above structure. Note that I put in a class param for the buttons and added a second styleblock. Iâm not sure it will appear correct but it is a start.