mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 12:05:41 +01:00
DEV :: same styles
This commit is contained in:
parent
83b6214260
commit
e363f862c6
1 changed files with 3 additions and 5 deletions
|
|
@ -21,14 +21,12 @@ export default function WebsiteDetails({ websiteId }: { websiteId: string }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const showLinks = !pathname.includes('/share/');
|
const showLinks = !pathname.includes('/share/');
|
||||||
const { view, ...params } = query;
|
const { view, ...params } = query;
|
||||||
useEffect(() => {
|
const sendHeight = () => {
|
||||||
// Send message to parent window with content height
|
|
||||||
const sendHeight = () => {
|
|
||||||
const height = document.body.scrollHeight;
|
const height = document.body.scrollHeight;
|
||||||
window.parent.postMessage({ height: height }, "*");
|
window.parent.postMessage({ height: height }, "*");
|
||||||
};
|
};
|
||||||
|
useEffect(() => {
|
||||||
// Send content height initially and on resize
|
// Send content height initially and on resize
|
||||||
sendHeight();
|
sendHeight();
|
||||||
window.addEventListener('resize', sendHeight);
|
window.addEventListener('resize', sendHeight);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue