Skip to content

Commit

Permalink
introduce dot icon
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed Mar 4, 2024
1 parent 4e4f558 commit 2c15e71
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions resources/public/icons/dot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/renderer/document/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
flex: 0 1 130px;

.close-document-button {
@apply icon-button invisible;
@apply icon-button invisible relative;

.circle {
@apply small absolute inset-0 text-center bg-primary;
.dot {
@apply absolute inset-0 bg-primary flex items-center;
}

&:hover {
.circle {
.dot {
@apply hidden;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/document/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
(rf/dispatch [:document/close key]))}
[comp/icon "times"]
(when-not saved?
[:div.circle ""])])
[comp/icon "dot" {:class "dot"}])])

(defn context-menu
[key]
Expand Down

0 comments on commit 2c15e71

Please sign in to comment.