Skip to content

Commit

Permalink
menubar: clearer New button
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuebert committed Aug 9, 2023
1 parent f155260 commit 7ae2a19
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions editor2/src/main/maria/cloud/menubar.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,6 @@
(when (= :file.provider/gist provider)
[icons/github "w-4 h-5 mr-2"]))

(defn popover [trigger content]
)

(ui/defview menubar []
(let [menubar-content @(ui/use-context ::!content)]
[:<>
Expand All @@ -190,12 +187,14 @@
menubar-content
[:div.flex-grow]
(let [cmd (keymaps/resolve-command :file/new)]
[ui/tooltip
[:div.cursor-pointer.p-1
{:class [trigger-classes
"text-zinc-500 hover:text-zinc-700"]
:on-click #(keymaps/run-command cmd)}
[icons/document-plus:mini "w-5 h-5 -mt-[2px]"]]
[:div.cursor-pointer.p-1
{:class [trigger-classes
"text-zinc-500 hover:text-zinc-700"]
:on-click #(keymaps/run-command cmd)}
"New"
#_[icons/document-plus:mini "w-5 h-5 -mt-[2px]"]]
#_[ui/tooltip
...
(:title (keymaps/resolve-command :file/new))])
[command-bar/input]
(if-let [{:keys [photo-url display-name]} (gh/get-user)]
Expand Down

0 comments on commit 7ae2a19

Please sign in to comment.