betterstart-cli 0.0.85 → 0.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/assets/adapters/next/templates/init/components/shared/dev-mode/copyable-code-block.tsx
CHANGED
|
@@ -38,7 +38,7 @@ export function CopyableCodeBlock({ label, code, language, tabs }: CopyableCodeB
|
|
|
38
38
|
<Card className="flex flex-col w-full p-0 gap-0">
|
|
39
39
|
{hasTabs ? (
|
|
40
40
|
<Tabs value={activeTab.id} onValueChange={setActiveTabId} className="min-h-0 flex-1 gap-0">
|
|
41
|
-
<CardHeader className="flex items-center justify-between gap-2
|
|
41
|
+
<CardHeader className="flex items-center justify-between gap-2 pt-[5px]! pb-2! pl-3.5! pr-1 bg-background border-b border-border">
|
|
42
42
|
<div className="flex min-w-0 flex-1 items-center gap-2">
|
|
43
43
|
<span className="min-w-0 truncate text-sm font-medium text-muted-foreground">
|
|
44
44
|
{label}
|
|
@@ -54,7 +54,7 @@ export function CopyableCodeBlock({ label, code, language, tabs }: CopyableCodeB
|
|
|
54
54
|
<Button
|
|
55
55
|
type="button"
|
|
56
56
|
variant="ghost"
|
|
57
|
-
size="icon"
|
|
57
|
+
size="icon-sm"
|
|
58
58
|
aria-label={`Copy ${label} ${activeTab.label}`}
|
|
59
59
|
onClick={() => {
|
|
60
60
|
void copy(activeTab.code)
|
|
@@ -66,7 +66,7 @@ export function CopyableCodeBlock({ label, code, language, tabs }: CopyableCodeB
|
|
|
66
66
|
|
|
67
67
|
{codeTabs.map((tab) => (
|
|
68
68
|
<TabsContent key={tab.id} value={tab.id} className="min-h-0 overflow-auto">
|
|
69
|
-
<CardContent className="p-0 overflow-auto">
|
|
69
|
+
<CardContent className="p-0 overflow-auto h-full">
|
|
70
70
|
<React.Suspense fallback={<PlainCodeFallback code={tab.code} />}>
|
|
71
71
|
<LazyCodeMirror code={tab.code} language={tab.language} theme={codeTheme} />
|
|
72
72
|
</React.Suspense>
|
|
@@ -76,14 +76,14 @@ export function CopyableCodeBlock({ label, code, language, tabs }: CopyableCodeB
|
|
|
76
76
|
</Tabs>
|
|
77
77
|
) : (
|
|
78
78
|
<>
|
|
79
|
-
<CardHeader className="flex items-center justify-between gap-2
|
|
79
|
+
<CardHeader className="flex items-center justify-between gap-2 pt-[5px]! pb-2! pl-3.5! pr-1 bg-background border-b border-border">
|
|
80
80
|
<span className="min-w-0 truncate text-sm font-medium text-muted-foreground">
|
|
81
81
|
{label}
|
|
82
82
|
</span>
|
|
83
83
|
<Button
|
|
84
84
|
type="button"
|
|
85
85
|
variant="ghost"
|
|
86
|
-
size="icon"
|
|
86
|
+
size="icon-sm"
|
|
87
87
|
aria-label={`Copy ${label}`}
|
|
88
88
|
onClick={() => {
|
|
89
89
|
void copy(activeTab.code)
|
package/dist/assets/adapters/next/templates/init/components/shared/dev-mode/dev-mode-code-mirror.tsx
CHANGED
|
@@ -11,8 +11,8 @@ import type { DevModeCodeLanguage, DevModeCodeTheme } from './dev-mode-types'
|
|
|
11
11
|
const codeMirrorSetup = {
|
|
12
12
|
lineNumbers: true,
|
|
13
13
|
foldGutter: false,
|
|
14
|
-
highlightActiveLine:
|
|
15
|
-
highlightActiveLineGutter:
|
|
14
|
+
highlightActiveLine: true,
|
|
15
|
+
highlightActiveLineGutter: true
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
const compactCodeTheme = EditorView.theme({
|
|
@@ -63,6 +63,7 @@ export default function DevModeCodeMirror({ code, language, theme }: DevModeCode
|
|
|
63
63
|
basicSetup={codeMirrorSetup}
|
|
64
64
|
extensions={extensions}
|
|
65
65
|
theme={theme === 'dark' ? githubDark : githubLight}
|
|
66
|
+
className="flex-1 [&>.cm-editor]:h-full"
|
|
66
67
|
/>
|
|
67
68
|
)
|
|
68
69
|
}
|