Skip to content

Commit

Permalink
0.4.2
Browse files Browse the repository at this point in the history
- 优化元素样式,提升使用体验
- 在文本框内按下 Esc 即可关闭
- 如果没有搜索结果,搜索结果和索引计数都清零
  • Loading branch information
TCOTC committed Mar 31, 2024
1 parent a5815b4 commit a444f24
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
4 changes: 3 additions & 1 deletion README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@

##### 2024-03-31

- 优化元素样式
- 优化元素样式,提升使用体验
- 在文本框内按下 Esc 即可关闭
- 如果没有搜索结果,搜索结果和索引计数都清零
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "siyuan-plugin-hsr-mdzz2048-fork",
"author": "TCOTC",
"url": "https://github.com/TCOTC/siyuan-plugin-hsr-mdzz2048-fork",
"version": "0.4.1",
"version": "0.4.2",
"minAppVersion": "2.9.8",
"backends": ["windows", "linux", "darwin"],
"frontends": ["desktop", "browser-desktop"],
Expand Down
3 changes: 2 additions & 1 deletion src/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
v-model="searchText"
@keydown.enter.exact="clickNext()"
@keydown.shift.enter="clickLast()"
@keydown.esc.exact="clickClose()"
@input="handleInput"
/>
</div>
Expand Down Expand Up @@ -36,7 +37,7 @@ const searchText = ref("")
const resultCount = ref(0)
const resultIndex = ref(0)
const resultRange = ref()
const placeholder = "🔍︎Enter"
const placeholder = "🔍︎ (Shift) + Enter"
const props = defineProps<{
document: Element,
Expand Down
10 changes: 1 addition & 9 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,7 @@
z-index: 6;
background-color: white;
border: 1px solid white;
box-shadow:
2px 2px 0 rgba(0, 0, 0, 0.2), /* 左上 */
3px 2px 0 rgba(0, 0, 0, 0.2), /**/
3px 3px 0 rgba(0, 0, 0, 0.2), /* 右上 */
3px 3px 0 rgba(0, 0, 0, 0.2), /**/
3px 3px 0 rgba(0, 0, 0, 0.2), /* 右下 */
2px 3px 0 rgba(0, 0, 0, 0.2), /**/
2px 3px 0 rgba(0, 0, 0, 0.2), /* 左下 */
2px 2px 0 rgba(0, 0, 0, 0.2); /**/
box-shadow: 1px 2px 6px 1px rgba(0, 0, 0, 0.2);
border-radius: 5px;
padding: 10px;
}
Expand Down

0 comments on commit a444f24

Please sign in to comment.