Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit e5a739b

Browse files
committed
fix: layout crash (fixes #8)
1 parent ab92434 commit e5a739b

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const App: FC = () => {
6060
</Col>
6161
</Row>
6262
<Row>
63-
<Col>
63+
<Col className="bottom-col">
6464
<Tabs>
6565
<Tab eventKey="rules" title="Rules">
6666
<RuleConfig
@@ -77,7 +77,7 @@ export const App: FC = () => {
7777
</Tab>
7878
</Tabs>
7979
</Col>
80-
<Col>
80+
<Col className="bottom-col">
8181
{linter === null ? (
8282
<div>
8383
<Spinner animation="border" role="status" variant="primary">

src/components/Fixed.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import React from "react";
22
import type { FC } from "react";
3+
import "@/css/fixed.css";
34

45
interface Props {
56
code: string;
67
}
78

8-
export const Fixed: FC<Props> = ({ code }) => <pre>{code}</pre>;
9+
export const Fixed: FC<Props> = ({ code }) => (
10+
<pre className="fixed-code">{code}</pre>
11+
);

src/css/app.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ main {
77
.row {
88
margin-top: 20px;
99
}
10+
.bottom-col {
11+
overflow: auto;
12+
}
1013
.versions {
1114
float: right;
1215
}

src/css/fixed.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.fixed-code {
2+
background: #f5f5f5;
3+
border: 1px solid #ccc;
4+
border-radius: 4px;
5+
padding: 10px;
6+
}

0 commit comments

Comments
 (0)