(feat): improve mobile
Some checks failed
/ release (push) Has been cancelled
/ build-web (push) Has been cancelled
/ build-desktop (linux) (push) Has been cancelled
/ build-mobile (push) Has been cancelled

(feat): add camera sharing
(fix): vite tauri connection
(fix): methanium/ui theme not applied to call popout
This commit is contained in:
Alois 2026-08-01 01:25:41 +02:00
commit 62aaa7c01d
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24
31 changed files with 1915 additions and 859 deletions

View file

@ -31,8 +31,13 @@ function copyDocumentStyles(targetDocument: Document) {
}
}
function syncDocumentClasses(targetDocument: Document) {
targetDocument.documentElement.className = document.documentElement.className;
function syncDocumentAttributes(targetDocument: Document) {
for (const attribute of document.documentElement.attributes) {
targetDocument.documentElement.setAttribute(
attribute.name,
attribute.value,
);
}
targetDocument.body.className = document.body.className;
}
@ -58,12 +63,12 @@ function PopoutScreen() {
popoutWindow.document.title = document.title;
popoutWindow.document.body.innerHTML = "";
popoutWindow.document.body.style.margin = "0";
copyDocumentStyles(popoutWindow.document);
syncDocumentAttributes(popoutWindow.document);
popoutWindow.document.documentElement.style.height = "100%";
popoutWindow.document.body.style.height = "100%";
copyDocumentStyles(popoutWindow.document);
syncDocumentClasses(popoutWindow.document);
const containerElement = popoutWindow.document.createElement("div");
containerElement.style.width = "100%";
containerElement.style.height = "100%";