Fix noVNC iframe height to fill screen and increase Xvfb resolution
This commit is contained in:
parent
abba15f1bc
commit
cc18b99b63
3 changed files with 9 additions and 8 deletions
|
|
@ -148,7 +148,7 @@ class PlaywrightManager:
|
|||
|
||||
cls._vnc_context = await cls._vnc_browser.new_context(
|
||||
user_agent=cls.DEFAULT_USER_AGENT,
|
||||
viewport={"width": 1200, "height": 750}
|
||||
viewport={"width": 1920, "height": 1000}
|
||||
)
|
||||
|
||||
cls._vnc_page = await cls._vnc_context.new_page()
|
||||
|
|
|
|||
|
|
@ -147,10 +147,11 @@ export const Login: React.FC = () => {
|
|||
</div>
|
||||
|
||||
{/* VNC Iframe */}
|
||||
<div className="flex-1 bg-gray-900">
|
||||
<div className="flex-1" style={{ minHeight: 'calc(100vh - 80px)' }}>
|
||||
<iframe
|
||||
src={getVncUrl()}
|
||||
className="w-full h-full border-0"
|
||||
className="w-full border-0"
|
||||
style={{ height: 'calc(100vh - 80px)' }}
|
||||
title="TikTok Login"
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ logfile_maxbytes=0
|
|||
loglevel=info
|
||||
|
||||
[program:xvfb]
|
||||
command=Xvfb :99 -screen 0 1280x800x24
|
||||
command=Xvfb :99 -screen 0 1920x1080x24
|
||||
autorestart=true
|
||||
priority=100
|
||||
stdout_logfile=/dev/stdout
|
||||
|
|
|
|||
Loading…
Reference in a new issue