fix(editor): preserve find & replace floating panel position and add reset button#128
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Deploying markdown-viewer with
|
| Latest commit: |
9fb9bc9
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7a6348e6.markdown-viewer.pages.dev |
| Branch Preview URL: | https://fix-dock-dragging.markdown-viewer.pages.dev |
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.
Description of Changes
1. Floating Position Preservation (Bug Fix)
top,left,right) back to defaults.script.jsto store custom floating panel coordinates.toggleFrDockMode()to restore the last stored coordinates when transitioning back to floating mode.constrainFloatingPanelPosition()to ensure custom positions are kept in-bounds and updated.2. Reset Position Button (New Feature)
id="find-replace-reset"and Bootstrap Iconbi-arrow-counterclockwiseto the Find & Replace header insideindex.html.styles.cssto hide the Reset Position button automatically when docked mode is active.script.jsthat clears the stored coordinate state and clears the panel's CSS positioning style properties, instantly returning it to the default position (100px from the top, 20px from the right).3. Desktop Application Synchronization
node prepare.jsinside thedesktop-appdirectory) to rebuild and copy all updated core files (index.html,script.js,styles.css) into the desktop wrapper (desktop-app/resources/).