From 89fdd955fe4fc651f71bddabf260a85d2088dce4 Mon Sep 17 00:00:00 2001 From: N-Pex Date: Mon, 9 Sep 2024 10:24:15 +0200 Subject: [PATCH] Fix padding on mobile --- apps/link/app/(main)/_components/ZammadWrapper.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/link/app/(main)/_components/ZammadWrapper.tsx b/apps/link/app/(main)/_components/ZammadWrapper.tsx index 1696040..975eb26 100644 --- a/apps/link/app/(main)/_components/ZammadWrapper.tsx +++ b/apps/link/app/(main)/_components/ZammadWrapper.tsx @@ -115,6 +115,14 @@ export const ZammadWrapper: FC = ({ // @ts-ignore linkElement.contentDocument.querySelector("#navigation").style = "display: none"; + // @ts-ignore + if (linkElement.contentDocument.querySelector(".content")) { + // If navigation removed, set content margin to 0 to avoid gap. + // @ts-ignore + linkElement.contentDocument.querySelector(".content").style = + "margin-left: 0"; + } + // @ts-ignore linkElement.contentDocument.querySelector("body").style = "font-family: Arial";