Skip to content

Commit

Permalink
enhance(ui): polish details for the accent color theme
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhp915 committed Feb 5, 2024
1 parent a07d0a5 commit f95b96b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/frontend/components/cmdk.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@
{:on-click #(handle-action action (assoc state :opts opts) %)
:muted true}))]
(when action
[:div {:class "flex w-full px-3 py-2 gap-2 justify-between"
[:div {:class "flex w-full px-3 py-2 gap-2 justify-between hints"
:style {:background "var(--lx-gray-03)"
:border-top "1px solid var(--lx-gray-07)"}}
[:div.text-sm.leading-6
Expand Down
4 changes: 2 additions & 2 deletions src/main/frontend/components/right_sidebar.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
(let [collapsed? (state/sub [:ui/sidebar-collapsed-blocks db-id])]
[:<>
(when (zero? idx) (drop-indicator (dec idx) drag-to))
[:div.flex.sidebar-item.content.color-level.rounded-md
[:div.flex.sidebar-item.content.color-level.rounded-md.shadow-lg
{:class [(str "item-type-" (name block-type))
(when collapsed? "collapsed")]}
(let [[title component] item]
Expand Down Expand Up @@ -456,7 +456,7 @@
(state/sidebar-add-block! repo "history" :history))}
(t :right-side-bar/history)]])]]

[:.sidebar-item-list.flex-1.scrollbar-spacing
[:.sidebar-item-list.flex-1.scrollbar-spacing.px-2
(if @*anim-finished?
(for [[idx [repo db-id block-type]] (medley/indexed blocks)]
(rum/with-key
Expand Down
3 changes: 1 addition & 2 deletions src/main/frontend/components/right_sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ html[data-theme=light] a.toggle:hover {
}

.cp__right-sidebar-topbar {
@apply px-1 h-12;
background-color: var(--ls-primary-background-color);
@apply px-1 h-12 bg-transparent;

button {
@apply opacity-100;
Expand Down
2 changes: 0 additions & 2 deletions src/main/frontend/components/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@
border-color: var(--ls-page-checkbox-border-color, hsl(var(--border)));
border: none;
position: relative;
top: -1px;
margin-right: 2px;
}

.form-checkbox:hover {
Expand Down

0 comments on commit f95b96b

Please sign in to comment.