mirror of https://github.com/logseq/logseq
fix: border and rounded corners
parent
e2206d303a
commit
f7f470a4af
|
@ -642,8 +642,6 @@ html[data-theme='dark'] {
|
||||||
@apply relative;
|
@apply relative;
|
||||||
flex: 1 1;
|
flex: 1 1;
|
||||||
min-height: 100px;
|
min-height: 100px;
|
||||||
border: 1px solid transparent;
|
|
||||||
transition: border-color 0.1s;
|
|
||||||
|
|
||||||
.sidebar-item-header {
|
.sidebar-item-header {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
|
@ -229,8 +229,9 @@
|
||||||
(when collapsed? "collapsed")]}
|
(when collapsed? "collapsed")]}
|
||||||
(let [[title component] item]
|
(let [[title component] item]
|
||||||
[:div.flex.flex-col.w-full.relative
|
[:div.flex.flex-col.w-full.relative
|
||||||
[:.flex.flex-row.justify-between.pr-2.sidebar-item-header.color-level
|
[:.flex.flex-row.justify-between.pr-2.sidebar-item-header.color-level.rounded-t-md
|
||||||
{:draggable true
|
{:class (when collapsed? "rounded-b-md")
|
||||||
|
:draggable true
|
||||||
:on-drag-start (fn [event]
|
:on-drag-start (fn [event]
|
||||||
(editor-handler/block->data-transfer! (:block/name (db/entity db-id)) event)
|
(editor-handler/block->data-transfer! (:block/name (db/entity db-id)) event)
|
||||||
(reset! *drag-from idx))
|
(reset! *drag-from idx))
|
||||||
|
|
Loading…
Reference in New Issue