fix: border and rounded corners

pull/9926/head
Konstantinos Kaloutas 2023-08-03 11:00:41 +03:00 committed by Tienson Qin
parent e2206d303a
commit f7f470a4af
2 changed files with 3 additions and 4 deletions

View File

@ -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;

View File

@ -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))