Skip to content

feat: add templating mode selector #1214

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

Merged
merged 13 commits into from
May 23, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: html default checked ad min height
  • Loading branch information
paoloricciuti committed May 22, 2025
commit 893e20e1f0e1962b3ca568ceb145513c7b2eac08
2 changes: 1 addition & 1 deletion packages/repl/src/lib/Output/CompilerOptions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<input
id={templating_mode}
type="radio"
checked={workspace.compiler_options.fragments === templating_mode}
checked={(workspace.compiler_options.fragments ?? 'html') === templating_mode}
value={templating_mode}
onchange={() => {
workspace.update_compiler_options({ fragments: templating_mode });
Expand Down
2 changes: 1 addition & 1 deletion packages/repl/src/lib/Output/Output.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
{#if embedded}
<Editor workspace={js_workspace} />
{:else}
<PaneWithPanel min="-18rem" pos="-18rem" panel="Compiler options">
<PaneWithPanel min="-27rem" pos="-27rem" panel="Compiler options">
{#snippet main()}
<Editor workspace={js_workspace} />
{/snippet}
Expand Down