refactor: adapt some styles for new layout container

This commit is contained in:
charlie
2020-12-03 12:31:23 +08:00
parent 9e0367e91f
commit e0b224cbca
6 changed files with 125 additions and 96 deletions

View File

@@ -38,8 +38,8 @@
{:viewBox "0 0 24 24", :fill "none", :stroke "currentColor"}
[:path
{:d svg-d
:stroke-width "2",
:stroke-linejoin "round",
:stroke-width "2"
:stroke-linejoin "round"
:stroke-linecap "round"}]]
title])
@@ -244,9 +244,8 @@
(when-not (state/sub :ui/sidebar-open?)
;; TODO: remove with-context usage
(rum/with-context [[t] i18n/*tongue-context*]
[:div#help.font-bold.absolute.bottom-4.bg-base-2.rounded-full.h-8.w-8.flex.items-center.justify-center.font-bold.cursor.opacity-70.hover:opacity-100
{:style {:right 24}
:title (t :help-shortcut-title)
[:div.cp__sidebar-help
{:title (t :help-shortcut-title)
:on-click (fn []
(state/sidebar-add-block! (state/get-current-repo) "help" :help nil))}
"?"])))