Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Automatic scrolling in the console - Issue #165 #166

Merged
merged 2 commits into from
May 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions components/Editor/Console.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@ const Console = () => {
}, [consoleLog])

return (
<div className="p-4">
<div ref={container} className="p-4">
<p className="text-gray-500 dark:text-gray-400 font-medium uppercase text-2xs">
Console
</p>
<div
ref={container}
className="leading-5 font-mono text-tiny text-gray-400 dark:text-gray-500"
>
<div className="leading-5 font-mono text-tiny text-gray-400 dark:text-gray-500">
{consoleLog.map((log, index) => (
<pre key={toKeyIndex('line', index)}>
{log.type === LogType.Error && (
Expand Down
2 changes: 1 addition & 1 deletion components/Editor/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const EditorHeader = ({

<div className="flex items-center ">
<Select
className="z-50"
className="z-40"
onChange={onCodeTypeChange}
options={codeLangOptions}
value={codeTypeValue}
Expand Down
2 changes: 1 addition & 1 deletion components/layouts/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { cn } from '../../util/styles'
const Nav = () => {
return (
<nav
className={'sticky z-40 top-0 inset-x-0 py-2 bg-white dark:bg-black-800'}
className={'sticky z-50 top-0 inset-x-0 py-2 bg-white dark:bg-black-800'}
>
<Container>
<div className="h-10 flex items-center justify-between">
Expand Down
Loading