Skip to content
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

fix: panel height issue #55

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function App() {
setCode({ ...code, [language]: value });
}}
/>
<div className="bg-foreground/5 overflow-auto h-[70dvh] sm:h-full relative flex flex-col">
<div className="bg-foreground/5 overflow-auto h-[calc(100vh-80px)] sm:h-full relative flex flex-col">
<div className="flex sm:items-center flex-col sm:flex-row justify-between p-4 gap-2 z-10">
<ToolSelector />
<div className="flex items-center gap-1">
Expand Down
2 changes: 1 addition & 1 deletion src/components/ast/javascript-ast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const JavascriptAst: FC = () => {
return (
<Accordion
type="multiple"
className="px-8 font-mono space-y-3"
className="px-8 pb-2 font-mono space-y-3"
defaultValue={["0-Program"]}
>
<JavascriptAstTreeItem data={tree} index={0} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/ast/json-ast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const JsonAst: FC = () => {
return (
<Accordion
type="multiple"
className="px-8 font-mono space-y-3"
className="px-8 pb-2 font-mono space-y-3"
defaultValue={["0-Document"]}
>
<JsonAstTreeItem data={result.ast} index={0} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/ast/markdown-ast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const MarkdownAst: FC = () => {
return (
<Accordion
type="multiple"
className="px-8 font-mono space-y-3"
className="px-8 pb-2 font-mono space-y-3"
defaultValue={["0-root"]}
>
<MarkdownAstTreeItem data={result.ast} index={0} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const Editor: FC<EditorProperties> = ({ readOnly, value, onChange }) => {

const editorClasses = clsx("relative", {
"h-[calc(100vh-152px)]": readOnly,
"h-[calc(100vh-72px)]": !readOnly,
"h-[calc(100vh-80px)]": !readOnly,
});

const dropMessageClasses = clsx(
Expand Down
2 changes: 1 addition & 1 deletion src/components/scope/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const Scope: FC = () => {
return (
<Accordion
type="multiple"
className="px-8 font-mono space-y-3"
className="px-8 pb-2 font-mono space-y-3"
defaultValue={["0-global"]}
>
{scopeView === "flat" ? (
Expand Down