feat: persist zoom level locally per device#1471
Open
Lucky-Sharma wants to merge 1 commit intozulip:mainfrom
Open
feat: persist zoom level locally per device#1471Lucky-Sharma wants to merge 1 commit intozulip:mainfrom
Lucky-Sharma wants to merge 1 commit intozulip:mainfrom
Conversation
c6c8fe6 to
99bcd38
Compare
Member
|
@Lucky-Sharma is this a PR you wrote or is this AI generated? The description seems AI generated. Please provide a concise and clear description in the PR and make sure you have tested all changes to work. If you are using AI, please see zulip's AI policy: https://zulip.readthedocs.io/en/latest/contributing/contributing.html#ai-use-policy-and-guidelines |
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.
Fixes #1457.
This PR implements device-local zoom level persistence in the Zulip Desktop application. Previously, zoom levels reset on every app restart, forcing users to manually readjust zoom each time. This change stores zoom preferences locally per device using localStorage, allowing users to maintain independent zoom settings across different computers without cloud synchronization.
The implementation adds zoom persistence methods to the WebView component that save and restore zoom levels across app restarts and organization switches. All localStorage operations include error handling and validation to gracefully handle corrupted data or storage unavailability.
Tested on Windows.
Platforms this PR was tested on: