File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const ReplPage = ({ onBackToHome }: ReplPageProps) => {
99 const wasm = useWasm ( ) ;
1010
1111 return (
12- < div className = "container mx-auto px-4 max-w-4xl" >
12+ < div className = "container mx-auto px-4 max-w-4xl" data-page = "repl" >
1313 < div className = "sticky top-0 py-2 bg-gray-50" >
1414 < div className = "flex items-center justify-between md:mb-10 my-2" >
1515 < h2 className = "text-lg font-extrabold text-transparent bg-clip-text bg-gradient-to-r from-[var(--color-wasi-purple)] to-[var(--color-wasi-violet)] drop-shadow" >
Original file line number Diff line number Diff line change @@ -43,6 +43,15 @@ body {
4343 color : # 222 ;
4444}
4545
46+ /* Prevent bouncing effect when scrolling on the REPL page (multiple scrolling containers) */
47+ body : has ([data-page = "repl" ]) {
48+ overflow : hidden;
49+ position : fixed;
50+ top : 0 ;
51+ left : 0 ;
52+ width : 100% ;
53+ }
54+
4655/* Focus styles for better accessibility */
4756button : focus-visible {
4857 outline : 2px solid var (--color-primary );
You can’t perform that action at this time.
0 commit comments