Skip to content

Commit

Permalink
Merge pull request #21 from Quorafind/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Quorafind authored Jan 9, 2022
2 parents b8a1617 + 450b5c3 commit ee28cd5
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 22 deletions.
11 changes: 8 additions & 3 deletions main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "obsidian-memos",
"name": "Obsidian Memos",
"description": "Memos for Obsidian",
"version": "1.1.0",
"version": "1.1.2",
"author": "Bonianll",
"authorUrl": "https://github.com/Quorafind/",
"isDesktopOnly": false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-memos",
"version": "1.1.0",
"version": "1.1.2",
"description": "A Flomo Like Plugin For Obsidian Daily Notes",
"author": "boninall",
"main": "main.js",
Expand Down
12 changes: 5 additions & 7 deletions src/components/Editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,11 @@ const Editor = forwardRef((props: EditorProps, ref: React.ForwardedRef<EditorRef
}}
onInput={handleEditorInput}
onKeyDown={handleEditorKeyDown}
// containerStyle={{
// marginTop: 20,
// width: 400,
// height: 100,
// margin: "20px auto"
// }}
dropdownStyle={{
minWidth: 180,
maxHeight: 250,
overflowY: "auto",
}}
minChar={0}
onItemSelected={handleInsertTrigger}
scrollToItem={true}
Expand All @@ -268,7 +267,6 @@ const Editor = forwardRef((props: EditorProps, ref: React.ForwardedRef<EditorRef
dataProvider: token => {
actualToken = token;
return usedTags(token)
.slice(0, 10)
.map(({ name, char }) => ({ name, char }));
},
//eslint-disable-next-line
Expand Down
3 changes: 2 additions & 1 deletion src/helpers/marked.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const parseMarkedToHtml = (markedStr: string, memoid?: string): string => {
.replace(DONE_BLOCK_REG, "<span class='todo-block' data-type='done'>✅</span>")
.replace(BOLD_TEXT_REG, "<strong>$1</strong>")
.replace(EM_TEXT_REG, "<em>$1</em>")
.replace(/&lt;br&gt;/g, "</p><p>");
.replace(/&lt;br&gt;/g, "</p><p>")
.replace(/&amp;/g, "&");

let newHtmlText = htmlText;

Expand Down
4 changes: 2 additions & 2 deletions src/less/search-bar.less
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ div[data-type="memos_view"] .search-bar-container {
width: 100%;
padding: 8px 16px;
border-radius: 8px;
width: 150%;
margin-left: -80px;
width: 120%;
margin-left: -35px;
}

> .quickly-action-wrapper {
Expand Down
33 changes: 30 additions & 3 deletions src/less/suggest.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,33 @@
font-size: 18px;
width: 100%;
height: 100%;
}

> ::-webkit-scrollbar{
width:2px;
height:16px;
background-color:#F5F5F5;
}

> ::-webkit-scrollbar-track
{
// -webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.3);
// border-radius:10px;
background-color:#F5F5F5;
}

::-webkit-scrollbar-thumb
{
// border-radius:10px;
// -webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);
background-color:#555;
}

::-webkit-scrollbar-track-piece
{
background-color:rgb(255, 255, 255);
}
}

.rta__loader.rta__loader--empty-suggestion-data {
display: none;
border-radius: 3px;
Expand Down Expand Up @@ -45,7 +71,7 @@
padding: 0;
background: #fff;
border: 1px solid #dfe2e5;
border-radius: 8px;
border-radius: 0px;
box-shadow: 0 0 10px rgba(27, 31, 35, 0.1);
list-style: none;
}
Expand All @@ -59,6 +85,7 @@
cursor: pointer;
}
.rta__item {
text-overflow: "ellipsis";
line-height: 30px;
}
.rta__item:fisrt-child{
Expand All @@ -68,7 +95,7 @@
border-bottom: 1px solid #ecedee;
}
.rta__item:last-child{
border-radius: 0px 0px 8px 8px;
border-radius: 0px 0px 0px 0px;
}
.rta__entity > * {
padding-left: 4px;
Expand Down
23 changes: 19 additions & 4 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,20 @@ div[data-type="memos_view"] .scroll::-webkit-scrollbar {
width: 100%;
height: 100%;
}
.rta > ::-webkit-scrollbar {
width: 2px;
height: 16px;
background-color: #F5F5F5;
}
.rta > ::-webkit-scrollbar-track {
background-color: #F5F5F5;
}
.rta ::-webkit-scrollbar-thumb {
background-color: #555;
}
.rta ::-webkit-scrollbar-track-piece {
background-color: #ffffff;
}
.rta__loader.rta__loader--empty-suggestion-data {
display: none;
border-radius: 3px;
Expand Down Expand Up @@ -267,7 +281,7 @@ div[data-type="memos_view"] .scroll::-webkit-scrollbar {
padding: 0;
background: #fff;
border: 1px solid #dfe2e5;
border-radius: 8px;
border-radius: 0px;
box-shadow: 0 0 10px rgba(27, 31, 35, 0.1);
list-style: none;
}
Expand All @@ -281,6 +295,7 @@ div[data-type="memos_view"] .scroll::-webkit-scrollbar {
cursor: pointer;
}
.rta__item {
text-overflow: "ellipsis";
line-height: 30px;
}
.rta__item:fisrt-child {
Expand All @@ -290,7 +305,7 @@ div[data-type="memos_view"] .scroll::-webkit-scrollbar {
border-bottom: 1px solid #ecedee;
}
.rta__item:last-child {
border-radius: 0px 0px 8px 8px;
border-radius: 0px 0px 0px 0px;
}
.rta__entity > * {
padding-left: 4px;
Expand Down Expand Up @@ -496,8 +511,8 @@ div[data-type="memos_view"] .search-bar-container > .quickly-action-wrapper:hove
width: 100%;
padding: 8px 16px;
border-radius: 8px;
width: 150%;
margin-left: -80px;
width: 120%;
margin-left: -35px;
}
div[data-type="memos_view"] .search-bar-container > .quickly-action-wrapper {
display: none;
Expand Down

0 comments on commit ee28cd5

Please sign in to comment.