Skip to content

Commit

Permalink
fix: enable scroll for long formula (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkz authored Nov 22, 2024
1 parent 8b7b604 commit f36cf66
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/hot-pets-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'anki-templates': patch
---

Enable scroll for long formula (长公式启用滚动)
6 changes: 3 additions & 3 deletions src/components/field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ export const AnkiField: FC<{
ref={attachNode}
id={`anki-field-${name}`}
className={clsx(
'anki-field overflow-x-hidden',
'prose prose-neutral',
'dark:prose-invert',
'anki-field',
'overflow-x-auto',
'prose prose-neutral dark:prose-invert',
styleId,
className,
)}
Expand Down
8 changes: 8 additions & 0 deletions src/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,11 @@ body {
.anki-field p:last-child {
margin-bottom: 0 !important;
}

.anki-field {
scrollbar-width: none;
}

.anki-field::-webkit-scrollbar {
scrollbar-width: none;
}

0 comments on commit f36cf66

Please sign in to comment.