From 72b062def163f67d595df6f482ada91554f1137a Mon Sep 17 00:00:00 2001 From: Frikky Date: Thu, 30 May 2024 14:25:21 +0200 Subject: [PATCH] Revert "parse video link from markdown and fix for the wokflow page" --- frontend/src/views/AngularWorkflow.jsx | 3 ++ frontend/src/views/Docs.jsx | 38 +++----------------------- 2 files changed, 7 insertions(+), 34 deletions(-) diff --git a/frontend/src/views/AngularWorkflow.jsx b/frontend/src/views/AngularWorkflow.jsx index a27d1876..fece7151 100755 --- a/frontend/src/views/AngularWorkflow.jsx +++ b/frontend/src/views/AngularWorkflow.jsx @@ -14697,6 +14697,7 @@ const AngularWorkflow = (defaultprops) => { right: 0, left: isMobile ? 20 : leftBarSize + 20, top: isMobile ? 30 : appBarSize + 20, + pointerEvents: "none", } @@ -14717,6 +14718,7 @@ const AngularWorkflow = (defaultprops) => {
{

{workflow.name}

diff --git a/frontend/src/views/Docs.jsx b/frontend/src/views/Docs.jsx index 6c412080..339bd608 100755 --- a/frontend/src/views/Docs.jsx +++ b/frontend/src/views/Docs.jsx @@ -102,35 +102,6 @@ export const CopyToClipboard = (props) => { ) } -export const Paragrah = (props) => { - const element = React.createElement( - `p`, - {}, - props.children, - ) - - if (props.children[0] != undefined) { - if(typeof props.children[0] === "string") { - if (props.children[0].includes('.mp4')) { - return ( -
- -
- ) - } - } - } - - - return ( -
- {element} -
- ) -} - export const OuterLink = (props) => { if (props.href.includes("http") || props.href.includes("mailto")) { return ( @@ -610,8 +581,8 @@ const Docs = (defaultprops) => { position: "sticky", top: 50, paddingTop: "0.25em", - minHeight: "95vh", - maxHeight: "95vh", + minHeight: "93vh", + maxHeight: "93vh", overflowX: "hidden", overflowY: "auto", zIndex: 1000, @@ -969,8 +940,7 @@ const Docs = (defaultprops) => { h4: Heading, h5: Heading, h6: Heading, - a: OuterLink, - p: Paragrah, + a: OuterLink, } @@ -1218,7 +1188,7 @@ const Docs = (defaultprops) => { // Padding and zIndex etc set because of footer in cloud. const loadedCheck = ( -
+
{postDataBrowser} {postDataMobile}