-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
CodeSurferSplit doesn't render #44
Comments
Ok, this module doen't required, so I copy pasted the component into my presentation folder, but get: |
@pomber feel like it isn't right
Cause And not here: |
Ok, I understand, this component needs total refactor. |
Yes, sorry about that. CodeSurferSplit is not usable right now (that's why it isn't documented anywhere), it needs a rewrite. |
@pomber I'll do a PR soon with implementation. |
@nickshevr did you happen to get a chance to start implementation or even analysis on this one? Do you have a list of things that need to be fixed? Currently have a use case for a split layout with Code Surfer. |
I would also be happy in the meantime with just a workaround so that two At the moment, the following top / bottom approach, derived from the code in the component, doesn't work seemingly because of the <div
style={{
height: '100vh',
display: 'flex',
flexDirection: 'column',
}}
>
<div style={{ flex: 1, overflow: 'hidden' }} key="codeTop">
<CodeSurfer
code={require('!raw-loader!./example-1.html')}
lang="markup"
/>
</div>
<div style={{ height: '2px', backgroundColor: '#333' }} />
<div style={{ flex: 1, overflow: 'hidden' }} key="codeBottom">
<CodeSurfer
code={require('!raw-loader!./example-1.css')}
lang="css"
/>
</div>
</div> More specifically, each <div
style="
height: 100vh;
width: 100vw;
...more styles...
"
>
<div
style="
height: 100vh;
...more styles...
"
>
<!-- further elements -->
</div>
</div> Changing these 3 values to Before: After: Maybe an MVP to allow for this kind of styling would be one or more options to allow changing of the width and height (and maybe other styles) of the |
Fixed in v3 with |
Thanks @pomber! Will take a look when I rebuild all the presentations for v3. |
I've added an export for it:
And used it in my
mdx
:But it doesn't build into presentation, and it also crash it with react-dom errors:
Any suggestions?
The text was updated successfully, but these errors were encountered: