Skip to content

Commit

Permalink
🐛 Fix scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
laymonage committed Feb 9, 2022
1 parent 5c58706 commit 5c44d7d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/@shared/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export function addDefaultStyles() {
}
.giscus-frame {
border: none;
color-scheme: auto;
color-scheme: normal;
}
`
document.head.prepend(style)
Expand Down
1 change: 1 addition & 0 deletions packages/react/lib/Giscus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function GiscusClient(props: GiscusProps) {
<iframe
className="giscus-frame"
title="Comments"
scrolling="no"
src={src}
ref={iframe}
/>
Expand Down
8 changes: 7 additions & 1 deletion packages/svelte/lib/Giscus.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,11 @@
</script>

<div class="giscus">
<iframe title="Comments" class="giscus-frame" {src} bind:this={iframe} />
<iframe
class="giscus-frame"
title="Comments"
scrolling="no"
{src}
bind:this={iframe}
/>
</div>
3 changes: 2 additions & 1 deletion packages/vue/lib/Giscus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ const Giscus = defineComponent({
return () => (
<div className="giscus">
<iframe
title="Comments"
className="giscus-frame"
title="Comments"
scrolling="no"
src={src.value}
ref={iframe as any}
/>
Expand Down

0 comments on commit 5c44d7d

Please sign in to comment.