diff --git a/src/components/ContentBlock.tsx b/src/components/ContentBlock.tsx index e4ec76d3..98a0bf04 100644 --- a/src/components/ContentBlock.tsx +++ b/src/components/ContentBlock.tsx @@ -13,7 +13,7 @@ export const ContentBlock = ({ content, waitForEvent }: ContentBlockProps): JSX. if (node != null) { mathifyElement(node) tooltipify(node).catch((error) => { console.error(error) }) - stylify(node).catch((error) => { console.error(error) }) + stylify(node) } }, []) diff --git a/src/lib/styles.tsx b/src/lib/styles.ts similarity index 95% rename from src/lib/styles.tsx rename to src/lib/styles.ts index bcf3b96c..d45ae4e4 100644 --- a/src/lib/styles.tsx +++ b/src/lib/styles.ts @@ -1,4 +1,4 @@ -export const stylify = async (element: HTMLElement): Promise => { +export const stylify = (element: HTMLElement): void => { const accordionItems = element.querySelectorAll('.os-raise-accordion-item') const setMaxHeight = (item: Element, content: HTMLElement): void => { diff --git a/src/main.tsx b/src/main.tsx index d26827dc..871d5661 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -18,7 +18,7 @@ const processPage = (): void => { if (contentElements === 0) { // Render blocks for Moodle storage tooltipify(document.body).catch((error) => { console.error(error) }) - stylify(document.body).catch((error) => { console.error(error) }) + stylify(document.body) renderContentOnlyBlocks(document.body) renderCTABlocks(document.body) renderUserInputBlocks(document.body) diff --git a/src/styles/content.scss b/src/styles/content.scss index 894b6635..3118b17e 100644 --- a/src/styles/content.scss +++ b/src/styles/content.scss @@ -356,7 +356,6 @@ table.os-raise-horizontaltable { font-weight: bold; border: none; width: 100%; - cursor: pointer; position: relative; }