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

Copy button is in a bad position #65

Closed
AllanOricil opened this issue Jan 10, 2021 · 2 comments
Closed

Copy button is in a bad position #65

AllanOricil opened this issue Jan 10, 2021 · 2 comments

Comments

@AllanOricil
Copy link

If the user does not scroll all the way to the right he will never see the copy button.

image

Could you move it to this position? This way the button is always visible
image

@chenfengjw163
Copy link
Owner

Add the "align" attribute to the "copyable" config item, with the values of "left" and "right" to control the left and right alignment.
like

<json-viewer
          value={this.jsonData}
          expand-depth={5}
          copyable={{
            align: 'left'
          }}
          boxed
          sort>
</json-viewer>

@chenfengjw163
Copy link
Owner

+2.2.18

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