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