diff --git a/apps/client/src/widgets/type_widgets/WebView.css b/apps/client/src/widgets/type_widgets/WebView.css index ceeb5ba7af..42ac871cfb 100644 --- a/apps/client/src/widgets/type_widgets/WebView.css +++ b/apps/client/src/widgets/type_widgets/WebView.css @@ -16,24 +16,3 @@ width: 100%; height: 100%; } - -.web-view-setup-form { - height: 100%; - display: flex; - flex-direction: column; - justify-content: center; - padding-inline: 40px; - - .form-icon { - margin-bottom: 12px; - } - - .form-group { - width: 100%; - max-width: 600px; - } - - .tn-link { - margin-top: 1em; - } -} diff --git a/apps/client/src/widgets/type_widgets/WebView.tsx b/apps/client/src/widgets/type_widgets/WebView.tsx index aeb56d70b2..90db7000d2 100644 --- a/apps/client/src/widgets/type_widgets/WebView.tsx +++ b/apps/client/src/widgets/type_widgets/WebView.tsx @@ -12,6 +12,7 @@ import FormGroup from "../react/FormGroup"; import FormTextBox from "../react/FormTextBox"; import { useNoteLabel } from "../react/hooks"; import LinkButton from "../react/LinkButton"; +import SetupForm from "./helpers/SetupForm"; import { TypeWidgetProps } from "./type_widget"; const isElectron = utils.isElectron(); @@ -58,55 +59,50 @@ function SetupWebView({note}: {note: FNote}) { }, [ setSrcLabel ]); return ( -
-
submit(src)}> - - - - {setSrc((e.target as HTMLInputElement)?.value);}} - /> - - -
+ + +