diff --git a/apps/web/src/components/frontend-client-base/frontend-client-base.tsx b/apps/web/src/components/frontend-client-base/frontend-client-base.tsx index f5bafca63e..8bc591d2d4 100644 --- a/apps/web/src/components/frontend-client-base/frontend-client-base.tsx +++ b/apps/web/src/components/frontend-client-base/frontend-client-base.tsx @@ -1,6 +1,7 @@ import { StaticStringsProvider } from '@editor/i18n/static-strings-provider' import { staticStrings as staticStringsDe } from '@editor/i18n/strings/de/static' import { staticStrings as staticStringsEn } from '@editor/i18n/strings/en/static' +import { SerloOnlyFeaturesContext } from '@editor/utils/serlo-extra-context' import type { AuthorizationPayload } from '@serlo/authorization' import Head from 'next/head' import { Router, useRouter } from 'next/router' @@ -125,37 +126,39 @@ export function FrontendClientBase({ ) : null} - - - - - {kids}} - > + + + + + ( -
- -
{kids}
-
-
- )} + condition={!noHeaderFooter} + wrapper={(kids) => {kids}} > - {children} + ( +
+ +
{kids}
+
+
+ )} + > + {children} +
+
- -
-
-
-
+ + + +
) diff --git a/apps/web/src/components/landing/subjects/subject-landing-topic-overview.tsx b/apps/web/src/components/landing/subjects/subject-landing-topic-overview.tsx index 12c86fe870..212bc8a45c 100644 --- a/apps/web/src/components/landing/subjects/subject-landing-topic-overview.tsx +++ b/apps/web/src/components/landing/subjects/subject-landing-topic-overview.tsx @@ -1,4 +1,5 @@ import { editorRenderers } from '@editor/plugin/helpers/editor-renderer' +import { EditorImage } from '@editor/plugins/image/components/editor-image' import { isImageDocument } from '@editor/types/plugin-type-guards' import { faListUl } from '@fortawesome/free-solid-svg-icons' import Image from 'next/image' @@ -146,8 +147,7 @@ export function SubjectLandingTopicOverview({ alt={`Illustration: ${term.title}`} /> ) : ( - // eslint-disable-next-line @next/next/no-img-element - + ) ) : null} diff --git a/apps/web/src/serlo-editor-integration/editor-renderer.tsx b/apps/web/src/serlo-editor-integration/editor-renderer.tsx index 290dfd32b4..d33e8afa51 100644 --- a/apps/web/src/serlo-editor-integration/editor-renderer.tsx +++ b/apps/web/src/serlo-editor-integration/editor-renderer.tsx @@ -1,6 +1,5 @@ import { StaticRenderer } from '@editor/static-renderer/static-renderer' import { AnyEditorDocument } from '@editor/types/editor-plugins' -import { SerloOnlyFeaturesContext } from '@editor/utils/serlo-extra-context' export function EditorRenderer({ document, @@ -8,10 +7,8 @@ export function EditorRenderer({ document: unknown }): JSX.Element { return ( - -
- -
-
+
+ +
) }