Skip to content

Commit

Permalink
Implement column adding
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Oct 14, 2024
1 parent 6754346 commit 6218f20
Show file tree
Hide file tree
Showing 5 changed files with 231 additions and 125 deletions.
10 changes: 6 additions & 4 deletions vendor/brr_lwd_ui/examples/virtual-table/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ let app =
let table =
{
columns =
[|
Columns.v "a" "5em" [ `P (El.txt' "id") ];
Columns.v "a" "1fr" [ `P (El.txt' "square") ];
|];
Lwd.pure
@@ Lwd_seq.of_array
[|
Columns.v "a" "5em" [ `P (El.txt' "id") ];
Columns.v "a" "1fr" [ `P (El.txt' "square") ];
|];
}
in
let table = { table; row_height = Em 5. } in
Expand Down
3 changes: 2 additions & 1 deletion vendor/brr_lwd_ui/examples/yjs/dune
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
brr-lwd
brr-lwd-ui
brr-lwd-ui.bindings.yjs
hector))
hector
uuidm))

(alias
(name examples)
Expand Down
12 changes: 8 additions & 4 deletions vendor/brr_lwd_ui/examples/yjs/main.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
body {
margin: 0;
}

.flex {
display: flex;
flex-direction: column;
height: 100vh;
padding: 1rem;
}
.flex .table {
flex-grow: 1;
}

.flex .flex {
margin-top: 2rem;
max-height: 33vh;
max-height: 66vh;
flex-grow: 1;
}

Expand All @@ -29,15 +33,15 @@
display: none;

&.visible {
display: block;
display: flex;
}

align-items: center;

position: absolute;
top: 0;
left: 0;

width: 100%;
height: 100%;

background-color: aquamarine;
}
Loading

0 comments on commit 6218f20

Please sign in to comment.