Skip to content

Commit 3cfa830

Browse files
committed
fix ExplicitImports test (DivElement not public)
1 parent c989732 commit 3cfa830

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/PlutoTeachingTools.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module PlutoTeachingTools
22

3-
using Pluto: PlutoRunner
3+
using Pluto.PlutoRunner: DivElement
44
using Markdown: @md_str, MD, Admonition, LaTeX
55
using HypertextLiteral: @htl, @htl_str
66
using Downloads: download # used in robustlocalresouce.jl

src/present.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ function Columns(cols...; widths=nothing, gap = 2)
2929
end
3030

3131
columns = [
32-
PlutoRunner.DivElement(children=[cols[i]], style="display: flex; flex: 0 1 $(widths[i])%") for i 1:ncols
32+
DivElement(children=[cols[i]], style="display: flex; flex: 0 1 $(widths[i])%") for i 1:ncols
3333
]
34-
the_gap = PlutoRunner.DivElement(children = [], style="display: flex; flex: 0 0 $gap%" )
34+
the_gap = DivElement(children = [], style="display: flex; flex: 0 0 $gap%" )
3535

3636
# insert gaps between columns
3737
# i.e. [a, b, c] ==> [a, gap, b, gap, c]
3838
children = vec([reshape(columns, 1, :); fill(the_gap, 1, ncols)])[1:end-1]
3939

40-
PlutoRunner.DivElement(; children,
40+
DivElement(; children,
4141
style="display: flex; flex-direction: row;"
4242
)
4343
end

0 commit comments

Comments
 (0)