add_" /> add_" /> add_"/>

How to modify contextmenu in jstree to get rid of unwanted space and align material icon with the text?

29 views Asked by At

Part of my contextmenu is:

'contextmenu': {
    items: function ($node) {
        return {
            'addnew': {
                "label": '<span class="material-symbols-outlined mr-2">add_circle</span>Add folder',
                "action": function (obj) {
                    AddNewFolder()
                }
            },

Visually it looks like this: enter image description here

I am trying to get rid of unwanted space marked with red cross and align icon and text center-vertically. Any advise will be appreciated, thanks!

0

There are 0 answers