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

How to hide the settings button? #11

Open
cdedreuille opened this issue Apr 25, 2022 · 1 comment
Open

How to hide the settings button? #11

cdedreuille opened this issue Apr 25, 2022 · 1 comment

Comments

@cdedreuille
Copy link

We want to prevent other people in the team to customise the Cloudinary button. IS there a way to hide it after settings are done?

CleanShot 2022-04-25 at 13 01 24

@olbrown
Copy link

olbrown commented Jul 11, 2022

+1

It would be great to be able to either hide this button once the settings have been stored or allow the settings to be set globally in a config file.

The only way I can find to do this is to hide it with CSS (targeting the 'data-testid' attribute on the parent). For example, for a "Cover Image" field:

[data-testid="input-coverImage"] > div:first-child { display: none; }

This would need to be done for each 'cloudinary.asset' field used throughout the site though and I'm not sure how futureproof the solution is.

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