mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Temp beta bug fix
This commit is contained in:
parent
945c25f97e
commit
8cd11dd959
2 changed files with 15 additions and 2 deletions
|
|
@ -122,7 +122,7 @@ export abstract class TextInputSuggest<T> implements ISuggestOwner<T> {
|
|||
this.inputEl = inputEl;
|
||||
this.scope = new Scope();
|
||||
|
||||
this.suggestEl = createDiv('suggestion-container');
|
||||
this.suggestEl = createDiv('fn-suggestion-container');
|
||||
const suggestion = this.suggestEl.createDiv('suggestion');
|
||||
this.suggest = new Suggest(this, suggestion, this.scope);
|
||||
|
||||
|
|
@ -133,7 +133,7 @@ export abstract class TextInputSuggest<T> implements ISuggestOwner<T> {
|
|||
this.inputEl.addEventListener('blur', this.close.bind(this));
|
||||
this.suggestEl.on(
|
||||
'mousedown',
|
||||
'.suggestion-container',
|
||||
'.fn-suggestion-container',
|
||||
(event: MouseEvent) => {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
|
|
|||
13
styles.css
13
styles.css
|
|
@ -238,3 +238,16 @@ body:not(.is-grabbing) .tree-item-self.fn-is-active:hover,
|
|||
}
|
||||
|
||||
|
||||
.fn-suggestion-container {
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: var(--background-primary);
|
||||
max-width: 500px;
|
||||
max-height: 300px;
|
||||
border-radius: var(--radius-m);
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
box-shadow: var(--shadow-s);
|
||||
z-index: var(--layer-notice);
|
||||
}
|
||||
Loading…
Reference in a new issue