mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 13:48:40 +00:00
Merge pull request #760 from tidalcycles/zen-fix
fix zen mode logo overlap
This commit is contained in:
commit
248757ac3f
@ -46,7 +46,5 @@ export const cleanupUi = () => {
|
|||||||
const container = document.getElementById('code');
|
const container = document.getElementById('code');
|
||||||
if (container) {
|
if (container) {
|
||||||
container.style = '';
|
container.style = '';
|
||||||
// TODO: find a way to remove that duplication..
|
|
||||||
container.className = 'grow flex text-gray-100 relative overflow-auto cursor-text pb-0'; // has to match App.tsx
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -127,6 +127,7 @@ export function Repl({ embedded = false }) {
|
|||||||
isAutoCompletionEnabled,
|
isAutoCompletionEnabled,
|
||||||
isLineWrappingEnabled,
|
isLineWrappingEnabled,
|
||||||
panelPosition,
|
panelPosition,
|
||||||
|
isZen,
|
||||||
} = useSettings();
|
} = useSettings();
|
||||||
|
|
||||||
const paintOptions = useMemo(() => ({ fontFamily }), [fontFamily]);
|
const paintOptions = useMemo(() => ({ fontFamily }), [fontFamily]);
|
||||||
@ -322,7 +323,7 @@ export function Repl({ embedded = false }) {
|
|||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
<div className="grow flex relative overflow-hidden">
|
<div className="grow flex relative overflow-hidden">
|
||||||
<section className="text-gray-100 cursor-text pb-0 overflow-auto grow" id="code">
|
<section className={'text-gray-100 cursor-text pb-0 overflow-auto grow' + (isZen ? ' px-10' : '')} id="code">
|
||||||
<CodeMirror
|
<CodeMirror
|
||||||
theme={currentTheme}
|
theme={currentTheme}
|
||||||
value={code}
|
value={code}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user