Skip to content

Allow the preview display position to be set to either the left or right side#57

Merged
Slowhand0309 merged 2 commits intodevelopfrom
feature/preview-position
Aug 27, 2025
Merged

Allow the preview display position to be set to either the left or right side#57
Slowhand0309 merged 2 commits intodevelopfrom
feature/preview-position

Conversation

@Slowhand0309
Copy link
Owner

This pull request introduces a new user preference for controlling the position of the preview panel (left or right side of the main window), and updates the preview logic to respect this setting. The most important changes are grouped below:

Issue: #56

User Preference Addition:

  • Added a new PreviewSide enum and a corresponding @AppStorage property to persist the user's choice for preview panel position (left or right). The setting is surfaced in the GeneralView as a menu picker for "Preview position".

Preview Panel Logic Updates:

  • Updated ContentView to read the preview side preference and pass it to the preview logic when showing an item. [1] [2]
  • Modified SlidePanelPreview.show to accept the side parameter and forward it to the positioning logic.
  • Enhanced positionPanelBesideAnchor to position the preview panel on either the left or right of the anchor window, respecting screen bounds and the user’s preference.

@Slowhand0309 Slowhand0309 merged commit 87a36cf into develop Aug 27, 2025
1 check passed
@Slowhand0309 Slowhand0309 deleted the feature/preview-position branch August 27, 2025 13:11
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.

1 participant