Skip to content

Commit

Permalink
Ajuste no dropdown mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabetefabri committed Mar 6, 2024
1 parent 2d9b85a commit 30542f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/views/pages/Chat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ const insertHeaderBefore = (viewEl) => {
},
};

document.body.insertAdjacentHTML("beforebegin", `
<header>
${Header(headerData).outerHTML}
</header>
`);
const rootElement = document.getElementById("root");
rootElement.insertAdjacentElement("beforebegin", Header(headerData));
};
4 changes: 3 additions & 1 deletion src/views/pages/Grupo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ export const Grupo = () => {
</section>
`;

document.body.insertAdjacentHTML("beforebegin", `<header>${Header(headerData).outerHTML}</header>`);
// document.body.insertAdjacentHTML("beforebegin", `<header>${Header(headerData).outerHTML}</header>`);
const rootElement = document.getElementById("root");
rootElement.insertAdjacentElement("beforebegin", Header(headerData));

const cardElement = dadosUsuarios(data);
viewEl.querySelector("#user-cards").appendChild(cardElement);
Expand Down

0 comments on commit 30542f3

Please sign in to comment.