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

Search bar doesn't float above code when scrolling #699

Open
kyleqian opened this issue Nov 13, 2024 · 1 comment
Open

Search bar doesn't float above code when scrolling #699

kyleqian opened this issue Nov 13, 2024 · 1 comment

Comments

@kyleqian
Copy link

image

Instead, it's appended at the bottom and can only be found by scrolling all the way to the end. I'm using 4.23.6, where the left pane is not editable and the right pane is.

The search bar in the normal CodeMirror component works (I use both), just not the merge one.

@jaywcjlove
Copy link
Member

<CodeMirrorMerge
orientation={orientation}
revertControls={revertControls}
collapseUnchanged={collapseUnchanged}
highlightChanges={highlightChanges}
gutter={gutter}
style={{ height: 300, overflow: 'auto' }}
theme={theme}
>

Removed outer styling and switched to controlling inner styles using the @uiw/codemirror-extensions-classname extension.

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

No branches or pull requests

2 participants