Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Auto focus TO_BE_MODIFIED in patch editor, fixed "add resource" button positioning #726

Merged
merged 3 commits into from
Nov 27, 2018

Conversation

10Dimensional
Copy link
Contributor

What I Did

Fixed the "Add Resource" button positioning on large file trees. It was hidden before, even if you scrolled down. Also updated the handleGeneratePatch in KustomizeOverlay.jsx to focus and go to the patch line being edited.

How I Did it

Add Resource fix: Updated CSS properties of .add-new-resource and ..dirtree-wrapper.
Auto focus fix: Use the find and goToLine methods on Ace Editor to get the position of the text being edited and then focus on it.

How to verify it

Run ship init and go to the kustomize view. You can simulate a large file tree by adding more <li> elements to the file tree. Click on a base line and type something in the patch.

Description for the Changelog

Auto focus TO_BE_MODIFIED in patch editor.
Fixed "add resource" button positioning on large file trees.

Picture of a Boat (not required but encouraged)

⛵️

@10Dimensional 10Dimensional requested a review from Rob0h November 27, 2018 01:24
@10Dimensional 10Dimensional merged commit 8d172c8 into replicatedhq:master Nov 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants