Skip to content

Commit b5c278e

Browse files
Feature/obsidian menu upstream pr43 (#13)
* Migrate menu item from custom div to obsidian menu with custom icons (cherry picked from commit 8c142df) * Remove container styles to use obsidian menu styles (cherry picked from commit 72bb562) --------- Co-authored-by: Duc N. PHAM <[email protected]>
1 parent 13f7e6a commit b5c278e

File tree

2 files changed

+0
-47
lines changed

2 files changed

+0
-47
lines changed

src/ui/highlighterMenu.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ const highlighterMenu = (
1717
let coords: Coords;
1818

1919
const menu = new Menu() as unknown as EnhancedMenu;
20-
21-
// menu.setUseNativeMenu(false);
22-
2320
const menuDom = menu.dom;
2421
menuDom.addClass("highlighterContainer");
2522

styles.css

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -184,50 +184,6 @@ details[open] summary.highlight-summary::before {
184184
opacity: 1;
185185
}
186186
}
187-
188-
.menu.highlighterContainer {
189-
min-width: 140px;
190-
max-width: 225px;
191-
max-height: 180px;
192-
padding-left: 0em;
193-
padding: 0;
194-
margin: 0 auto;
195-
border-radius: 6px;
196-
font-size: 14px;
197-
overflow-y: auto;
198-
overflow-x: hidden;
199-
position: fixed;
200-
animation: fade 300ms ease-in-out;
201-
background-color: var(--background-primary);
202-
box-shadow: 0px 3px 25px rgba(31, 38, 135, 0.1);
203-
border: 1px solid var(--background-modifier-border);
204-
}
205-
206-
.menu.highlighterContainer .menu-item .menu-item-icon {
207-
display: inline-block;
208-
width: 25px;
209-
position: relative;
210-
top: 2px;
211-
}
212-
213-
.menu.highlighterContainer .menu-item {
214-
display: flex;
215-
padding: 2px 14px 3px 14px;
216-
align-items: unset;
217-
margin: auto;
218-
cursor: pointer;
219-
font-size: 14px;
220-
height: 32px;
221-
line-height: 31px;
222-
white-space: nowrap;
223-
border-radius: 0;
224-
border-bottom: 1px solid var(--background-modifier-border);
225-
}
226-
227-
.menu.highlighterContainer .menu-item:last-of-type {
228-
border-bottom: none;
229-
}
230-
231187
/*----------------------------------------------------------------
232188
SETTINGS TAB
233189
----------------------------------------------------------------*/

0 commit comments

Comments
 (0)