#You would mutate the HTML in the hook

1 messages · Page 1 of 1 (latest)

willow hawk
#

thanks! I've been able to do it but the entire sidebar gets moved whenever I do that; do I need to recall something?

    Hooks.on("renderSidebar", async function (sidebar, context, tabs)  {
        $('[data-tab="cards"]', context).remove();
        return [sidebar, context, tabs];
    });
hidden lily
#
  1. You don't need to removed anything.

  2. What do you mean "moved" exactly?

willow hawk
#

ah, making it a hide() instead prevents it from moving, so it's a non-issue

#

but this is what was happening