This commit is contained in:
Jonathan Summers-Muir committed 2024-12-15 23:11:19 +08:00
1 parent 8fe125a653
commit d012ed12c3
2 files changed
+5 -1

No files matched your search

@@ -15,6 +15,7 @@ import { Admonition } from 'ui-patterns'
import { untitledSnippetTitle } from './SQLEditor.constants'
import type { IStandaloneCodeEditor } from './SQLEditor.types'
import { createSqlSnippetSkeletonV2 } from './SQLEditor.utils'
import { makeActiveTabPermanent } from 'state/tabs'
export type MonacoEditorProps = {
id: string
@@ -120,6 +121,9 @@ const MonacoEditor = ({
}, 1000)
function handleEditorChange(value: string | undefined) {
// make active tab permanent
makeActiveTabPermanent(ref)
const snippetCheck = snapV2.snippets[id]
if (id && value) {
@@ -59,7 +59,7 @@ export function NewTab() {
return (
<div className="bg-surface-100 h-full overflow-y-auto py-12">
<div className="mx-auto max-w-2xl flex flex-col gap-10">
<div className="mx-auto max-w-2xl flex flex-col gap-10 px-10">
<div className="grid grid-cols-2 gap-4">
{actions.map((item, i) => (
<ActionCard key={`action-card-${i}`} {...item} />