Skip to content

Commit

Permalink
Поправил стили
Browse files Browse the repository at this point in the history
  • Loading branch information
YarikMix committed May 14, 2024
1 parent 6d07761 commit 5de859f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
7 changes: 2 additions & 5 deletions public/src/components/Editor/Editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,8 @@ export class Editor {
subtree: true
});


if (this.open) {
this.editable.focus()
this.editable.click()
}
this.editable.focus()
this.editable.click()
}

getSchema = () => {
Expand Down
1 change: 0 additions & 1 deletion public/src/components/Editor/EditorWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export class EditorWrapper extends Component<any, EditorState> {
}

componentWillUnmount() {
console.log("componentWillUnmount")
AppNoteStore.UnSubscribeToStore(this.updateState)
}

Expand Down
2 changes: 1 addition & 1 deletion public/src/components/TagsFilter/TagsFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class TagsFilter extends ScReact.Component<TagsFilterProps, TagsFilterSta

<div className="filters-panel" onscroll={this.closeMenu}>

{/*<AddTagMenu tags={this.props.tags}/>*/}
<AddTagMenu tags={this.props.tags}/>

<div className={"tag-options-menu " + (this.state.menuOpen ? "open" : "")}
ref={ref => this.menuRef = ref}>
Expand Down
2 changes: 1 addition & 1 deletion public/src/pages/Notes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export class NotesPage extends ScReact.Component<any, any> {
</div>
{this.state.tags.length == 0 ? <AddTagMenu tags={this.state.tags} /> : ""}
</div>
{/*{this.state.tags.length > 0 ? <TagsFilter tags={this.state.tags} selectedTags={this.state.selectedTags} selectTag={this.selectTag} /> : "" }*/}
{this.state.tags.length > 0 ? <TagsFilter tags={this.state.tags} selectedTags={this.state.selectedTags} selectTag={this.selectTag} /> : "" }
<div className="notes-container" onclick={this.handleSelectNote} ref={ref => this.notesContainerRef = ref}>
<Loader active={this.state.fetching}/>
{
Expand Down

0 comments on commit 5de859f

Please sign in to comment.