Skip to content

Commit

Permalink
fix: ResizablePanel warning that the sum of percentages needs to be…
Browse files Browse the repository at this point in the history
… 100%
  • Loading branch information
aiktb committed Oct 27, 2024
1 parent 75fac69 commit 71bbfa7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Hi! We're Really excited that you are interested in contributing to Vueast. Befo
- Commit messages must be matched by the following regex, see [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) for more information.

```txt
/^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(.+\))?: .{1,70}/
/^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(.+\))?: .{1,100}/
```

## Development Setup
Expand Down
6 changes: 3 additions & 3 deletions app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function Index() {
<Header className="sticky top-0 z-20 w-full" />
<main className="overflow-scroll">
<ResizablePanelGroup direction="horizontal" className="w-full overflow-scroll">
<ResizablePanel defaultSize={50} id="editor-view" order={1}>
<ResizablePanel defaultSize={view === "JSON" ? 50 : 34} id="editor-view" order={1}>
<div className="h-full items-center justify-center px-3 py-6 lg:px-6">
<ClientOnly>{() => <CodeMirrorEditor code={code} onChange={onChange} />}</ClientOnly>
</div>
Expand All @@ -66,13 +66,13 @@ export default function Index() {
)}
{view === "tree" && (
<>
<ResizablePanel defaultSize={50} id="tree-view" order={2}>
<ResizablePanel defaultSize={33} id="tree-view" order={2}>
<div className="h-full items-center justify-center px-3 py-6 lg:px-6">
<CollapsibleTreeView ast={ast} />
</div>
</ResizablePanel>
<ResizableHandle withHandle={true} />
<ResizablePanel defaultSize={50} id="node-view" order={3}>
<ResizablePanel defaultSize={33} id="node-view" order={3}>
<div className="h-full items-center justify-center px-3 py-6 lg:px-6">
<SelectedNodeView />
</div>
Expand Down
2 changes: 1 addition & 1 deletion commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RuleConfigSeverity, type UserConfig } from "@commitlint/types";

const HEADER_MAX_LENGTH = 70;
const HEADER_MAX_LENGTH = 100;
const config: UserConfig = {
extends: ["@commitlint/config-conventional"],
rules: {
Expand Down

0 comments on commit 71bbfa7

Please sign in to comment.