mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
Fixed allow scroll on all components
This commit is contained in:
@@ -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>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user