Fix padding on mobile
This commit is contained in:
parent
566d3643de
commit
89fdd955fe
1 changed files with 8 additions and 0 deletions
|
|
@ -115,6 +115,14 @@ export const ZammadWrapper: FC<ZammadWrapperProps> = ({
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
linkElement.contentDocument.querySelector("#navigation").style =
|
linkElement.contentDocument.querySelector("#navigation").style =
|
||||||
"display: none";
|
"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
|
// @ts-ignore
|
||||||
linkElement.contentDocument.querySelector("body").style =
|
linkElement.contentDocument.querySelector("body").style =
|
||||||
"font-family: Arial";
|
"font-family: Arial";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue