Skip to content

Commit

Permalink
fix: incorrect full width modification (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
semigroupoid authored Dec 1, 2023
1 parent fec5644 commit 3d20ebe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webenginepage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ void WebEnginePage::injectClassChangeObserver() {
R"(
const observer = new MutationObserver(() => {
var haveFullView = document.body.classList.contains('whatsie-full-view');
var container = document.querySelector('#app > .app-wrapper-web > div');
var container = document.querySelector('#app > .app-wrapper-web > .two');
if(container){
if(haveFullView){
container.style.width = '100%';
Expand Down Expand Up @@ -404,7 +404,7 @@ void WebEnginePage::injectFullWidthJavaScript() {
return;
QString js =
R"(function updateFullWidthView(element) {
var container = document.querySelector('#app > .app-wrapper-web > div');
var container = document.querySelector('#app > .app-wrapper-web > .two');
container.style.width = '100%';
container.style.height = '100%';
container.style.top = '0';
Expand Down

0 comments on commit 3d20ebe

Please sign in to comment.