feat(web): improve login persistence and screen interactfeat(web): 优化登录持久化与桌面交互体验 / Improve login persistence and desktop interactionsions#795
Open
bilibilifmk wants to merge 1 commit into
Conversation
Author
|
主要解决 宿主机分辨率小于或大于浏览设备分辨率 进行缩放 实现完全全屏功能 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
本次更新主要优化了 Web 端的登录体验、桌面悬浮菜单交互,以及远程画面的自适应显示效果。
具体改动
登录页新增“记住密码”和“自动登录”选项
登录成功后将账号信息和自动登录状态保存到本地
页面初始化时自动恢复已保存的登录信息,并在开启自动登录时直接登录
为登录页新增中英文国际化文案
桌面悬浮菜单支持拖拽到屏幕边缘后自动吸附
吸附后的菜单支持悬停展开,并支持点击或拖动解除吸附
菜单吸附边和偏移位置会持久化保存
优化菜单边界和页面 overflow,避免吸附状态下出现滚动条
新增统一的屏幕自适应缩放逻辑
H264 Direct、H264 WebRTC 和 MJPEG 模式下的远程画面现在会根据容器尺寸自动缩放,减少溢出和裁切问题
Summary
This PR improves the Web UI in three areas: login persistence, floating desktop menu interactions, and adaptive remote screen rendering.
Changes
Added Remember Password and Auto Login options to the login page
Persisted saved credentials and auto-login preference in local storage
Restored saved login state on page load and triggered login automatically when enabled
Added new i18n strings for both Chinese and English
Added edge snapping behavior for the floating desktop menu
Added hover-to-expand behavior for snapped menus, with click or drag to release
Persisted snapped edge and offset position locally
Adjusted menu bounds and page overflow handling to avoid scrollbars in snapped mode
Added a shared fit-scale hook for remote screen rendering
Applied adaptive scaling to H264 Direct, H264 WebRTC, and MJPEG views to reduce overflow and cropping