Skip to content

Commit

Permalink
mode/jump-heading.lisp: .button has margin-top 20px
Browse files Browse the repository at this point in the history
  • Loading branch information
guojing0 authored and aartaka committed Jan 11, 2022
1 parent d3a1c00 commit 88d3a18
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions source/mode/jump-heading.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,16 @@ of buffers."
(flet ((buffer-markup (heading)
"Create the presentation for a buffer."
(spinneret:with-html
(:p (:button :class "button"
:onclick (ps:ps (nyxt/ps:send-lisp-url
`(progn (switch-buffer :id ,(id (buffer heading)))
(scroll-to-element :nyxt-identifier ,(get-nyxt-id (element heading))))))
(:span :title (title heading)
:class "title" (title heading)))))))
(:button :class "button"
:onclick (ps:ps (nyxt/ps:send-lisp-url
`(progn (switch-buffer :id ,(id (buffer heading)))
(scroll-to-element :nyxt-identifier ,(get-nyxt-id (element heading))))))
(:span :title (title heading)
:class "title" (title heading))))))
(spinneret:with-html-string
(:style (theme:themed-css (theme *browser*)
(.button
:margin-top "20px"
:white-space "nowrap"
:overflow-x "hidden"
:display "block"
Expand Down

0 comments on commit 88d3a18

Please sign in to comment.