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 override overflow-x style of the main Highlight div #280

Open
isaacwein opened this issue Jun 11, 2023 · 0 comments
Open

How to override overflow-x style of the main Highlight div #280

isaacwein opened this issue Jun 11, 2023 · 0 comments

Comments

@isaacwein
Copy link

isaacwein commented Jun 11, 2023

already talked about this in issue #274

I can't make it work even if I define a global class because the overflow-x is on the div itself, why make it so hard?

<div class="line-numbers svelte-1vh31p0" style="overflow-x: auto;"> 
    <table class="svelte-1vh31p0">
          ....
    </table>
</div>

the only way i was able to overwrite it was with a !important like this

.line-numbers {
  overflow-x: unset !important;
  overflow-y: unset !important;
}

I don't think it is the right way

the whole idea that I need to define as a global class and use it in my components is wrong in the first place

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

1 participant