#switch the collapse/zoom buttons.

15 messages · Page 1 of 1 (latest)

elder lance
#

I tend to use the expand/collapse function a lot more frequently than i zoom in/out on a node. Would be nice if we had a plugin that switched the primary/secondary buttons on nodes to reflect this. the outliner dynalist works this way already, so i attached a video of the desired ui.

I'd pitch in $25 for it :)

feral tendon
#

I agree. It is very natural to reverse them.

I have experience creating multiple plugins. I don't know if it can be achieved with a plugin. I'll try the challenge.

feral tendon
#

The bottleneck only occurs when the collapse button has child blocks.

#

Ultimately it should be an option for Logseq, since what is output will need to be processed again by a plugin.

elder lance
#

yeah this issue may be better handled with a pr for adding a config toggle in mainline logseq

whole sparrow
#

Here is a simple version with custom.css only:

.block-control-wrap > .block-control + .bullet-link-wrap {
    order: -1;
}
.ls-block[haschild="true"] > .block-main-container > .block-control-wrap > .block-control > .control-hide {
    display: block;
}
.block-control-wrap {
    padding-right: 0px;
}
.block-control {
    margin-left: -4px;
    margin-top: 3px;
}

It works differently than dynalist, but it may be enough for your case.

feral tendon
whole sparrow
feral tendon
whole sparrow
feral tendon
#

It was possible to change icons. However, since it is not possible to attach events to the menu from CSS, it was only a decoration. I couldn't find any better ideas.😓

I think that many users find it difficult to understand how to use bullet points on Logseq. Bullets have four functions: click to zoom the block, drag the block, bullet context menu, and shift-click to right sidebar. In particular, some users don't know that right-clicking brings up a context menu. If Logseq were to be a user-friendly tool, tooltips for bullet points would be necessary.

elder lance
#

thank you for the contributions guys! sent 15 to both

elder lance
#

on further consideration the css solution is still pretty clunky. wondering if this could just be solved by fiddling with the source of logseq itself. from what i can tell (not knowing clojure) this is the bit of code that defines the zoom button https://github.com/logseq/logseq/blob/master/src/main/frontend/ui.cljs#L763

GitHub

A privacy-first, open-source platform for knowledge management and collaboration. Download link: http://github.com/logseq/logseq/releases. roadmap: http://trello.com/b/8txSM12G/roadmap - logseq/lo...

elfin mauve