diff --git a/hide-in-queue/src/widgets/index.tsx b/hide-in-queue/src/widgets/index.tsx index c0f14bb5..11734649 100644 --- a/hide-in-queue/src/widgets/index.tsx +++ b/hide-in-queue/src/widgets/index.tsx @@ -27,6 +27,14 @@ const CSS = ` .rn-queue__content:has(.rn-question-rem[data-queue-rem-container-tags~="no-hierarchy"]) .indented-rem:not(.rn-question-rem) > .rn-queue-rem { display: none; } + +.rn-queue__content:has(.indented-rem[data-queue-rem-container-tags~="delete-hierarchies"]) .indented-rem:not(.rn-question-rem) { + margin-left: 0px !important; +} + +.rn-queue__content:has(.indented-rem[data-queue-rem-container-tags~="delete-hierarchies"]) .indented-rem:not(.rn-question-rem) > .rn-queue-rem { + display: none; +} `; async function onActivate(plugin: ReactRNPlugin) { @@ -46,6 +54,22 @@ async function onActivate(plugin: ReactRNPlugin) { slots: [], } ); + await plugin.app.registerPowerup( + "No hierarchy", + "noHierarchy", + "Hierarchy will not appear in rems tagged with this tag.", + { + slots: [], + } + ); + await plugin.app.registerPowerup( + "Delete Hierarchies", + "deleteHierarchies, + "If any hierarchy is tagged with this, no hierarchy will appear on any flashcards below it.", + { + slots: [], + } + ); await plugin.app.registerCSS("powerup", CSS); }