Skip to content

Commit

Permalink
Merge pull request #133 from andrejilderda/fix/duplicate-icons-in-edi…
Browse files Browse the repository at this point in the history
…tor-toolbar

fix: duplicate icons in editor toolbar
  • Loading branch information
andrejilderda authored May 12, 2024
2 parents 81e38f8 + cca0cec commit 88002c8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
5 changes: 5 additions & 0 deletions .changeset/curvy-icons-boil.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"joplin-plugin-macos-theme": patch
---

fix: duplicate icons in editor toolbar
40 changes: 19 additions & 21 deletions src/scss/components/_components.editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -307,14 +307,6 @@
}
}

// icon: back
&:nth-of-type(1) span:before {
@include icon(chevron-backward);
}
// icon: forward
&:nth-of-type(2) span:before {
@include icon(chevron-forward);
}
// icon: external editor
&:nth-of-type(3):nth-of-type(3) {
min-width: 2.6rem !important;
Expand All @@ -332,6 +324,10 @@
&::before {
@include icon(arrow-up-forward-app);
}

&:not(:first-child) {
display: none;
}
}
}
}
Expand Down Expand Up @@ -439,32 +435,32 @@
}
button:nth-child(3):before {
content: "H3";
}
}
}

.tox-toolbar__group:nth-child(5) {
button:nth-child(1):before {
@include icon(minus);
}
@include icon(minus);
}
}

.tox-toolbar__group:nth-child(6) {
button:nth-child(1):before {
@include icon(text-quote);
}
@include icon(text-quote);
}
}

.tox-toolbar__group:nth-child(7) {
button:nth-child(1):before {
@include icon(tablecells-badge-ellipsis);
}
@include icon(tablecells-badge-ellipsis);
}
}

.tox-toolbar__group:nth-child(8) {
button:nth-child(1):before {
@include icon(clock);
}
}
@include icon(clock);
}
}

// add divider between editor icons and text input field
.tox-editor-header {
Expand Down Expand Up @@ -632,14 +628,16 @@
padding: 0;

&:focus-within:hover {
&, .tox-split-button {
&,
.tox-split-button {
&:not(:hover) {
@include dropdownItemDefault();
}
}
}

button, .tox-split-button {
button,
.tox-split-button {
@include dropdownItem();

justify-content: flex-start;
Expand Down

0 comments on commit 88002c8

Please sign in to comment.