Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: zoom editor fonts only and live preview switch issues #1799

Merged
merged 1 commit into from
Aug 10, 2024
Merged

fix: zoom editor fonts only and live preview switch issues #1799

merged 1 commit into from
Aug 10, 2024

Conversation

abose
Copy link
Member

@abose abose commented Aug 10, 2024

Restore Editor-Only Font Zoom Functionality

Context: In the initial version of Phoenix, the font zoom feature was limited to the editor, similar to the behavior observed in Brackets. However, when system-wide zoom capabilities were lacking, Phoenix expanded the font zoom to include menus and other UI elements as a temporary measure.

Issue: Although native system-wide zoom was later successfully integrated into the Tauri layer, the temporary extension of font zoom to all UI elements was never reverted. This led to unnecessary zooming of UI components that should not typically scale with the editor font settings.

Solution: This pull request aims to revert the font zoom functionality so that it exclusively applies to the editor's font. This change reinstates the original, more focused behavior and utilizes the native system-wide zoom capabilities for broader UI scaling needs.

Fixes: https://github.com/orgs/phcode-dev/discussions/1798

Also fix live preview switch issues

When a related js file is open in the editor, and clicking on a text box in the live preview focuses the active editor, never being able to type text in the text field. That breaks dev workflows.

@phoenixide
Copy link
Member

Thank You for making this pull request.

Copy link

sonarcloud bot commented Aug 10, 2024

@abose abose merged commit 5604c38 into main Aug 10, 2024
17 checks passed
@abose abose deleted the p branch August 10, 2024 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants