Fix padding on mobile

This commit is contained in:
N-Pex 2024-09-09 10:24:15 +02:00
parent 566d3643de
commit 89fdd955fe

View file

@ -115,6 +115,14 @@ export const ZammadWrapper: FC<ZammadWrapperProps> = ({
// @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";