fix scrolling on hoon-htmx

This commit is contained in:
Will Hanlen 2024-06-19 08:59:23 -04:00
parent ccbb0a5896
commit 8c56b70090

View File

@ -1,4 +1,5 @@
/@ htmx /@ htmx
/- feather-icons
:- [%hoon %$ %htmx] :- [%hoon %$ %htmx]
|= hon=@t |= hon=@t
|= =bowl:neo |= =bowl:neo
@ -25,24 +26,29 @@
:: ::
++ apex ++ apex
^- manx ^- manx
;div.wf.hf.hoon.fc ;form.wf.hf.hoon.fc
=hx-put "{(en-tape:pith:neo (welp /neo/hawk here.bowl))}?stud=hoon"
=hx-trigger "click from:find button, keydown[metaKey&&key=='Enter']"
=hx-target "closest .hoon"
=hx-swap "morph"
;+ imports ;+ imports
;+ contents ;+ contents
;+ script ;+ script
== ==
++ imports ++ imports
;div.frw.g2.p2 ;div.frw.jb.ac.g2.p1
;* ;+
?- -.fool ?- -.fool
%.n %.n
:_ ~
(error p.fool) (error p.fool)
:: ::
%.y %.y
;div.frw.g2.p1.wfc
;*
%+ turn pro.p.fool %+ turn pro.p.fool
|= =pro:ford:neo |= =pro:ford:neo
^- manx ^- manx
;a.p2.br1.b1.hover.s-1 ;a.p2.br1.bd1.b1.hover.s-1
=href (spud (post-href %pro stud.pro)) =href (spud (post-href %pro stud.pro))
=hx-target "closest .hawk" =hx-target "closest .hawk"
=hx-swap "innerHTML" =hx-swap "innerHTML"
@ -50,6 +56,8 @@
== ==
== ==
== ==
;+ saver
==
++ error ++ error
|= =tang |= =tang
=/ =wall (zing (turn tang |=(t=tank (~(win re t) [0 80])))) =/ =wall (zing (turn tang |=(t=tank (~(win re t) [0 80]))))
@ -61,24 +69,19 @@
;+ ;/ tape ;+ ;/ tape
== ==
== ==
++ contents ++ saver
;form.fc.g2.wf.relative.grow.scroll-y
=style "border-top: 1px solid var(--b3);"
=hx-put "{(en-tape:pith:neo (welp /neo/hawk here.bowl))}?stud=hoon"
=hx-trigger "click from:find button, keydown[metaKey&&key=='Enter']"
=hx-target "closest .hoon"
=hx-swap "morph"
;div.relative.grow.fc
;div.wfc.z1.absolute
=style "top: 15px; right: 15px;"
;button.p2.br2.b1.bd1.hover.loader ;button.p2.br2.b1.bd1.hover.loader
;span.loaded.fr.ac.g1 ;span.loaded.fr.ac.g1
;span.bold: save ;span.bold: save
;span.f2.s-2: cmd+enter ;span.f2.s-2: cmd+enter
== ==
;span.loading: ... ;span.loading
;+ loading.feather-icons
== ==
== ==
++ contents
;div.fc.g2.wf.relative.grow.scroll-y
=style "border-top: 1px solid var(--b3); padding-bottom: 250px;"
;div.fr.grow ;div.fr.grow
;div.hf.f3.numbered ;div.hf.f3.numbered
=style "min-width: 10px; padding: 8px 5px; border-right: 1px solid var(--b3);" =style "min-width: 10px; padding: 8px 5px; border-right: 1px solid var(--b3);"
@ -87,9 +90,8 @@
|= n=@ |= n=@
;div.mono(style "line-height: 1.1;"); ;div.mono(style "line-height: 1.1;");
== ==
;textarea.p2.pre.mono.wf.grow ;textarea.p2.pre.mono.wf.grow.scroll-hidden
=id "bingo-bango" =style "outline:none; line-height: 1.1;"
=style "outline:none; line-height: 1.1; overflow-y: hidden;"
=autocomplete "off" =autocomplete "off"
=rows "1" =rows "1"
=spellcheck "false" =spellcheck "false"
@ -103,7 +105,6 @@
== ==
== ==
== ==
==
++ script ++ script
;script ;script
;+ ;/ %- trip ;+ ;/ %- trip