Skip to content

Commit 823e1c3

Browse files
authored
fix: layout improvements (#90)
1 parent 5917850 commit 823e1c3

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function App() {
4848
</Panel>
4949
<PanelResizeHandle className="w-2 bg-gutter dark:bg-gray-600 bg-gray-200 bg-no-repeat bg-center" />
5050
<Panel defaultSize={50} minSize={25}>
51-
<div className="bg-muted overflow-auto h-[70dvh] sm:h-full relative flex flex-col">
51+
<div className="bg-muted overflow-auto h-full relative flex flex-col">
5252
<div className="flex sm:items-center flex-col sm:flex-row justify-between p-4 gap-2 z-10">
5353
<ToolSelector />
5454
<div className="flex items-center gap-1">

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 min-w-max"
29+
className="px-8 pb-4 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 min-w-max"
34+
className="px-8 pb-4 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 min-w-max"
29+
className="px-8 pb-4 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 min-w-max"
29+
className="px-8 pb-4 font-mono space-y-3 min-w-max"
3030
defaultValue={["0-root"]}
3131
>
3232
<MarkdownAstTreeItem

src/components/editor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ export const Editor: FC<EditorProperties> = ({
131131
}, [readOnly]);
132132

133133
const editorClasses = clsx("relative", {
134-
"h-[calc(100vh-152px)]": readOnly,
135-
"h-[calc(100vh-72px)]": !readOnly,
134+
"h-[calc(100%-72px)]": readOnly,
135+
"h-[calc(100%-57px)]": !readOnly,
136136
});
137137

138138
const dropMessageClasses = clsx(

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 min-w-max"
40+
className="px-8 pb-4 font-mono space-y-3 min-w-max"
4141
defaultValue={["0-global"]}
4242
>
4343
{scopeView === "flat" ? (

0 commit comments

Comments
 (0)