Fixed allow scroll on all components

This commit is contained in:
Emir Karabeg
2025-01-21 14:26:52 -08:00
parent 2b553546dd
commit d4033842ba
2 changed files with 2 additions and 1 deletions
@@ -546,6 +546,7 @@ export function Code({ blockId, subBlockId }: CodeProps) {
'text-muted-foreground placeholder:text-muted-foreground/50',
'leading-none flex items-center',
'whitespace-pre',
'allow-scroll',
selection && 'selection:bg-primary/20'
),
[selection]
@@ -112,7 +112,7 @@ export function Table({ columns, blockId, subBlockId }: TableProps) {
onFocus={() => {
activePositionRef.current = { rowIndex, column }
}}
className="border-0 focus-visible:ring-0 focus-visible:ring-offset-0 text-muted-foreground placeholder:text-muted-foreground/50"
className="border-0 focus-visible:ring-0 focus-visible:ring-offset-0 text-muted-foreground placeholder:text-muted-foreground/50 allow-scroll"
/>
</td>
))}