Skip to content

Commit 2ab3f95

Browse files
committed
(style) use flex display
Signed-off-by: Lîm Tsú-thuàn <inbox@dannypsnl.me>
1 parent dc15062 commit 2ab3f95

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const App = () => {
4242
}),
4343
label({ for: `add-namespace` }, `disable inserted namespace`),
4444
div(
45+
{ class: `edit-board` },
4546
textarea({
4647
value: html_input,
4748
oninput: (e) => (html_input.val = e.target.value),

example.js

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

style.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
.edit-board {
2+
display: flex;
3+
}
4+
15
textarea {
2-
/* float: left; */
36
width: 50%;
47
overflow: hidden;
58
min-height: 50em;
69
overflow-y: auto;
10+
border-radius: 0.3rem;
711
}
812

913
pre {
@@ -12,6 +16,10 @@ pre {
1216
border-radius: 0.5rem;
1317
position: relative;
1418
width: 50%;
19+
min-height: 50em;
20+
overflow-y: auto;
21+
margin-top: 0;
22+
margin-bottom: 0;
1523
}
1624

1725
pre button {

0 commit comments

Comments
 (0)