fix: weird scrollbars shown on mac systems due to system settings.

This commit is contained in:
Darshan
2025-01-20 15:34:07 +05:30
parent 1c15560ca8
commit 32c5060e02
2 changed files with 9 additions and 2 deletions

View File

@@ -86,10 +86,17 @@
</div>
</header>
<div
class="web-code-snippet-content"
class="web-code-snippet-content overflow-auto"
style={`height: ${height ? height / 16 + 'rem' : 'inherit'}`}
>
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
{@html result}
</div>
</section>
<style>
/* system breaks the corners */
.overflow-auto::-webkit-scrollbar {
display: none;
}
</style>