Skip to content

Commit

Permalink
fix(popup): restrict max size for non mac OS popups
Browse files Browse the repository at this point in the history
  • Loading branch information
dvcol committed Apr 8, 2024
1 parent 0219930 commit 230a6f8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pages/popup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@ import { AppInstance, ServiceInstance } from '@src/models';
import { initApp } from '@src/pages/common';
import { LoggerService } from '@src/services';
import { getPopup } from '@src/store/selectors';
import { isMacOs } from '@src/utils';

const resizeContainer = () => {
const root = document?.getElementById('synology-download-popup-app-container');

if (!root) return;

if (!isMacOs()) {
root.style.maxWidth = `720px`;
root.style.maxHeight = `592px`;
}

root.style.width = `${window.innerWidth}px`;
root.style.height = `${window.innerHeight}px`;
};
Expand Down

0 comments on commit 230a6f8

Please sign in to comment.