orefalo/svelte-splitpanes

styling in the svelte REPL?

zahachtah opened this issue · 7 comments

Hi, great component, very useful for me! question: how do I need to adapt the code to do the styling in the svelte REPL?

https://svelte.dev/repl/3434f0b23d534ba4bb962ec88a3ae1e5?version=3.48.0

Many thanks!

glad it helps,

a style section should suffice.

did you check the other demo link? it has many examples which should just run with a copy paste into REPL

Thats what I did, the link above is the cut and pasted version with styled splitters, but the styling does not show up unfortunately...

ok. unfortunately not the best time for me to troubleshoot. please give me 48h ty

didn't try your version of the code, took one of the ones from the demo page, copy/paste

->https://svelte.dev/repl/95d67f36254c499ca9e5c69c32d7abbb?version=3.48.0

seems to work

ok, I had left a class="default-theme" in the splitpanes component....

thanks, all solved....

good.

Indirectly related, I found that a class prop on Pane could be super useful.

Change already pushed.

Sincerely

Hi, thank you for pointing issues with styling. I reworked it with a theme attribute and fixed the css styles.
it's now much easier to style and more consistent. check the demos.

Sincerely