Skip to content

Commit 3d20ebe

Browse files
authored
fix: incorrect full width modification (#150)
1 parent fec5644 commit 3d20ebe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webenginepage.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ void WebEnginePage::injectClassChangeObserver() {
348348
R"(
349349
const observer = new MutationObserver(() => {
350350
var haveFullView = document.body.classList.contains('whatsie-full-view');
351-
var container = document.querySelector('#app > .app-wrapper-web > div');
351+
var container = document.querySelector('#app > .app-wrapper-web > .two');
352352
if(container){
353353
if(haveFullView){
354354
container.style.width = '100%';
@@ -404,7 +404,7 @@ void WebEnginePage::injectFullWidthJavaScript() {
404404
return;
405405
QString js =
406406
R"(function updateFullWidthView(element) {
407-
var container = document.querySelector('#app > .app-wrapper-web > div');
407+
var container = document.querySelector('#app > .app-wrapper-web > .two');
408408
container.style.width = '100%';
409409
container.style.height = '100%';
410410
container.style.top = '0';

0 commit comments

Comments
 (0)