Skip to content

Commit

Permalink
small changes of borders , text and padding
Browse files Browse the repository at this point in the history
  • Loading branch information
LukaszMMazur committed Apr 24, 2024
1 parent 085875c commit ff4a418
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 43 deletions.
35 changes: 19 additions & 16 deletions components/Editor/Console.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,25 @@ const Console = () => {
}, [consoleLog])

return (
<div
ref={container}
className="px-4 pb-2 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 && (
<span className="text-red-500">[Error] </span>
)}
{log.type === LogType.Warn && (
<span className="text-yellow-500">[Warn] </span>
)}
{log.message}
</pre>
))}
<div ref={endDiv}></div>
<div 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"
>
{consoleLog.map((log, index) => (
<pre key={toKeyIndex('line', index)}>
{log.type === LogType.Error && (
<span className="text-red-500">[Error] </span>
)}
{log.type === LogType.Warn && (
<span className="text-yellow-500">[Warn] </span>
)}
{log.message}
</pre>
))}
<div ref={endDiv}></div>
</div>
</div>
)
}
Expand Down
15 changes: 2 additions & 13 deletions components/Editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ const Editor = ({ readOnly = false }: Props) => {
isThreeColumnLayout && 'md:w-1/2',
)}
>
<div className="border-b border-gray-200 dark:border-black-500 flex items-center pl-6 pr-2 h-14 flex-none md:border-r justify-between">
<div className="border-b border-gray-200 dark:border-black-500 flex items-center pl-4 pr-2 h-14 flex-none md:border-r justify-between">
<Header
codeType={codeType}
onCodeTypeChange={({ value }) => setCodeType(value)}
Expand Down Expand Up @@ -482,20 +482,9 @@ const Editor = ({ readOnly = false }: Props) => {
</div>
<div
className={cn(
'h-[22vh] border-r border-t pane pane-light overflow-auto pb-4',
'h-[22vh] border-r border-t pane pane-light overflow-auto border-gray-200 dark:border-black-500',
)}
>
<div className="px-4">
<nav className="-mb-px flex space-x-8" aria-label="Tabs">
<div
className={cn(
'text-gray-700 whitespace-nowrap border-b py-1 mt-2 mb-4 text-xs font-thin',
)}
>
Console
</div>
</nav>
</div>
<Console />
</div>
</div>
Expand Down
17 changes: 3 additions & 14 deletions components/Tracer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export const Tracer = () => {

return (
<>
<div className="border-t md:border-t-0 border-b border-gray-200 dark:border-black-500 flex items-center pl-4 pr-6 h-14 flex-none">
<div className="border-t md:border-t-0 border-b border-gray-200 dark:border-black-500 flex items-center pl-4 pr-4 h-14 flex-none">
<ExecutionStatus
onStepIn={stepIn}
onStepOut={stepOut}
Expand Down Expand Up @@ -173,18 +173,7 @@ export const Tracer = () => {
</div>
)}

<div className="border-gray-200 border-t dark:border-black-500 flex-none pane pane-light overflow-auto pb-4 h-[22vh]">
<div className="px-4">
<nav className="-mb-px flex space-x-8" aria-label="Tabs">
<div
className={cn(
'text-gray-700 whitespace-nowrap border-b py-1 mt-2 mb-4 text-xs font-thin',
)}
>
Debug Info
</div>
</nav>
</div>
<div className="border-gray-200 border-t dark:border-black-500 flex-none pane pane-light overflow-auto h-[22vh]">
<DebugInfoTab
trace={trace}
currentTraceEntry={currentTraceEntry}
Expand All @@ -211,7 +200,7 @@ function DebugInfoTab({
handleRegisterPointerClick: (num: number) => void
}) {
return (
<div className="px-4 pb-4">
<div className="p-4">
{trace === undefined ? (
<p className="text-mono text-tiny text-gray-400 dark:text-gray-500">
Run the app to get debug info
Expand Down

0 comments on commit ff4a418

Please sign in to comment.