Hi, I’m new here and I’m loving tiddlywiki, indeed I already made some customization and everything went correctly, even if with some difficulties because I’m not an expert at all.
Unfortunately I couldn’t figure out how to change the position of the dropdowns in the editor toolbar. I searched everywhere but I’m really stuck. Here what I discovered:
Using the browser analysis tools (I’m using firefox) I found that the position of these dropdowns is set to absolute like this <span class =" tc-reveal tc-popup" style="position: absolute; z-index...";>. Now, if I manually and temporarily change that “absolute” to “downleft” in the browser tool I have my desired solution.
But when I go to create a tiddler tagged with “$:/tags/Stylesheet” I can’t change the position (I can easly change the background color, but the change of position I try to make is overridden)
Probably my change isn’t specific enough for the css:
e.g. (one of my attempts)
I even tried to change the vanilla theme, but with no luck (mostly trial and error, I undestand only a fraction of what is there) But ideally I don’t want to mess with the themes. If there was a non-intrusive solution, that would be ideal. I hope I have described the problem well
Thanks in advance
As this page tells us, inline style gets 1,000 specificity points so to override that in CSS you need to get a bigger number - which you can accomplish by adding !important, thus the CSS you’d want is:
(I replaced downleft with static due to what I wrote earlier).
But I am not sure if static is what you want. Perhaps what you want is to override left and right such that it shares right edge with the button rather than the left edge?
Hi Maurycy, thank you
Static is not what i’m looking for, but what you wrote could be really useful. I feel i could be on the right track. If I find a solution, I’ll post it.
Thanks
But the dropdowns of button for editor toolbar, their position is hardcoded in the button (and dropdown) template $:/core/ui/EditTemplate/body/toolbar/button
Then you will need change the position (from below) to belowleft, you have to options to do it:
Modify directly in the tiddler template
Copy and modify the macro (toolbar-button), which creates the button (and dropdown), in a new tiddler is tagged with $:/tags/Macro.
I would choose the second option. The modified macro would be:
Thank you Álvaro!
The macro tiddler didn’t work (unless i did something wrong), but it works perfectly editing $:/core/ui/EditTemplate/body/toolbar/button.
The only edit necessary was changing as you said “below” to “belowleft”. Wonderful.
Thanks again
Yes, it doesn’t work. The macro definition and the call are in the same tiddler, there isn’t chance to redefine the macro before the macro call. I forgot the the macro call was here.