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,30 +26,37 @@
:: ::
++ 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
%+ turn pro.p.fool ;div.frw.g2.p1.wfc
|= =pro:ford:neo ;*
^- manx %+ turn pro.p.fool
;a.p2.br1.b1.hover.s-1 |= =pro:ford:neo
=href (spud (post-href %pro stud.pro)) ^- manx
=hx-target "closest .hawk" ;a.p2.br1.bd1.b1.hover.s-1
=hx-swap "innerHTML" =href (spud (post-href %pro stud.pro))
; {<stud.pro>} =hx-target "closest .hawk"
=hx-swap "innerHTML"
; {<stud.pro>}
==
== ==
== ==
;+ saver
== ==
++ error ++ error
|= =tang |= =tang
@ -61,46 +69,39 @@
;+ ;/ tape ;+ ;/ tape
== ==
== ==
++ saver
;button.p2.br2.b1.bd1.hover.loader
;span.loaded.fr.ac.g1
;span.bold: save
;span.f2.s-2: cmd+enter
==
;span.loading
;+ loading.feather-icons
==
==
++ contents ++ contents
;form.fc.g2.wf.relative.grow.scroll-y ;div.fc.g2.wf.relative.grow.scroll-y
=style "border-top: 1px solid var(--b3);" =style "border-top: 1px solid var(--b3); padding-bottom: 250px;"
=hx-put "{(en-tape:pith:neo (welp /neo/hawk here.bowl))}?stud=hoon" ;div.fr.grow
=hx-trigger "click from:find button, keydown[metaKey&&key=='Enter']" ;div.hf.f3.numbered
=hx-target "closest .hoon" =style "min-width: 10px; padding: 8px 5px; border-right: 1px solid var(--b3);"
=hx-swap "morph" ;*
;div.relative.grow.fc %+ turn (gulf 1 (lent src))
;div.wfc.z1.absolute |= n=@
=style "top: 15px; right: 15px;" ;div.mono(style "line-height: 1.1;");
;button.p2.br2.b1.bd1.hover.loader
;span.loaded.fr.ac.g1
;span.bold: save
;span.f2.s-2: cmd+enter
==
;span.loading: ...
==
== ==
;div.fr.grow ;textarea.p2.pre.mono.wf.grow.scroll-hidden
;div.hf.f3.numbered =style "outline:none; line-height: 1.1;"
=style "min-width: 10px; padding: 8px 5px; border-right: 1px solid var(--b3);" =autocomplete "off"
;* =rows "1"
%+ turn (gulf 1 (lent src)) =spellcheck "false"
|= n=@ =name "text"
;div.mono(style "line-height: 1.1;"); =oninput "this.setAttribute('value', this.value); skyHoonRenumber(this);"
== =value (trip hon)
;textarea.p2.pre.mono.wf.grow ;*
=id "bingo-bango" %+ turn src
=style "outline:none; line-height: 1.1; overflow-y: hidden;" |= lin=@t
=autocomplete "off" ;/ "{(trip lin)}\0a"
=rows "1"
=spellcheck "false"
=name "text"
=oninput "this.setAttribute('value', this.value); skyHoonRenumber(this);"
=value (trip hon)
;*
%+ turn src
|= lin=@t
;/ "{(trip lin)}\0a"
==
== ==
== ==
== ==