Skip to content

feat: Make the terminal on tutorials resizable with SplitPane#1741

Open
bricefrisco wants to merge 8 commits intosveltejs:mainfrom
bricefrisco:main
Open

feat: Make the terminal on tutorials resizable with SplitPane#1741
bricefrisco wants to merge 8 commits intosveltejs:mainfrom
bricefrisco:main

Conversation

@bricefrisco
Copy link

@bricefrisco bricefrisco commented Jan 17, 2026

Before submitting the PR, please make sure you do the following

  • It's really useful if your PR references an issue where it is discussed ahead of time.
  • Prefix your PR title with feat:, fix:, chore:, or docs:.
  • This message body should clearly illustrate what problems it solves.

Closes #1740 by wrapping the viewer and terminal in a SplitPane.

Quick demo:
screen-capture.webm

Update (see comments): Fixes #624

@vercel
Copy link

vercel bot commented Jan 17, 2026

@bricefrisco is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

@bricefrisco
Copy link
Author

Looked into this more, the styling can be simplified because the overflow-y: auto on .terminal is clipping .terminal::after as it is anyways.

It looks like it was meant to create a top fade / depth separator between the terminal and whatever is above it, but that will now be done by SplitPane.

Also no need to set the visible class any longer, that logic is now handled by:

<SplitPane
		min="50px"
		type="vertical"
		disabled={!terminal_visible}
		max={terminal_visible ? '80%' : '100%'}
		pos={terminal_visible ? '20%' : '100%'}
	>

As I was going along, I stumbled upon and decided to quickly fix #624 by increasing the opacity on the background.

Before:
image

After:
image

With the terminal in the after photo being resizable as well. I'm pushing those changes now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the terminal on tutorials resizable with SplitPane Mismatched Terminal Colors in the Tutorial, in Light Mode

1 participant