better spacing in zen mode

This commit is contained in:
Felix Roos 2024-07-25 16:44:02 +02:00
parent 03bbc0bc27
commit 943d78f268
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ export function Header({ context }) {
)} )}
> >
<div <div
className={cx('mt-[1px]', started && 'animate-spin', 'cursor-pointer')} className={cx('mt-[1px]', started && 'animate-spin', 'cursor-pointer', isZen && 'fixed top-2 right-4')}
onClick={() => { onClick={() => {
if (!isEmbedded) { if (!isEmbedded) {
setIsZen(!isZen); setIsZen(!isZen);

View File

@ -250,7 +250,7 @@ export function Repl({ embedded = false }) {
)} )}
<div className="grow flex relative overflow-hidden"> <div className="grow flex relative overflow-hidden">
<section <section
className={'text-gray-100 cursor-text pb-0 overflow-auto grow' + (isZen ? ' px-10' : '')} className={'text-gray-100 cursor-text pb-0 overflow-auto grow'}
id="code" id="code"
ref={(el) => { ref={(el) => {
containerRef.current = el; containerRef.current = el;