Skip to content

Commit 0765029

Browse files
authored
fix: tree view horizontal scrolling to prevent node collapse (#89)
1 parent da3e1e5 commit 0765029

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/components/ast/css-ast.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const CssAst: FC = () => {
2626
return (
2727
<Accordion
2828
type="multiple"
29-
className="px-8 font-mono space-y-3"
29+
className="px-8 font-mono space-y-3 min-w-max"
3030
defaultValue={["0-StyleSheet"]}
3131
>
3232
<CssAstTreeItem

src/components/ast/javascript-ast.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const JavascriptAst: FC = () => {
3131
return (
3232
<Accordion
3333
type="multiple"
34-
className="px-8 font-mono space-y-3"
34+
className="px-8 font-mono space-y-3 min-w-max"
3535
defaultValue={["0-Program"]}
3636
>
3737
<JavascriptAstTreeItem

src/components/ast/json-ast.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const JsonAst: FC = () => {
2626
return (
2727
<Accordion
2828
type="multiple"
29-
className="px-8 font-mono space-y-3"
29+
className="px-8 font-mono space-y-3 min-w-max"
3030
defaultValue={["0-Document"]}
3131
>
3232
<JsonAstTreeItem

src/components/ast/markdown-ast.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const MarkdownAst: FC = () => {
2626
return (
2727
<Accordion
2828
type="multiple"
29-
className="px-8 font-mono space-y-3"
29+
className="px-8 font-mono space-y-3 min-w-max"
3030
defaultValue={["0-root"]}
3131
>
3232
<MarkdownAstTreeItem

src/components/scope/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const Scope: FC = () => {
3737
return (
3838
<Accordion
3939
type="multiple"
40-
className="px-8 font-mono space-y-3"
40+
className="px-8 font-mono space-y-3 min-w-max"
4141
defaultValue={["0-global"]}
4242
>
4343
{scopeView === "flat" ? (

0 commit comments

Comments
 (0)