diff --git a/app/src/assets/scss/business/_search.scss b/app/src/assets/scss/business/_search.scss index aedb23174..dd65bfc87 100644 --- a/app/src/assets/scss/business/_search.scss +++ b/app/src/assets/scss/business/_search.scss @@ -160,4 +160,27 @@ opacity: 1; } } + + &__tip { + font-size: 12px; + color: var(--b3-theme-on-surface-light); + margin: 2px 8px; + display: flex; + align-items: center; + flex-wrap: wrap; + + kbd { + &:first-child { + margin-left: 0; + } + + padding: 1px 3px; + font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; + background-color: var(--b3-theme-surface); + border: solid 1px var(--b3-theme-surface-lighter); + border-radius: 3px; + box-shadow: inset 0 -1px 0 var(--b3-theme-surface-lighter); + margin: 0 4px 0 16px; + } + } } diff --git a/app/src/search/util.ts b/app/src/search/util.ts index 7cbc07568..1fdef794d 100644 --- a/app/src/search/util.ts +++ b/app/src/search/util.ts @@ -18,7 +18,7 @@ import {getIconByType} from "../editor/getIcon"; import {unicode2Emoji} from "../emoji"; import {Dialog} from "../dialog"; import {hasClosestByClassName} from "../protyle/util/hasClosest"; -import {setStorageVal} from "../protyle/util/compatibility"; +import {setStorageVal, updateHotkeyTip} from "../protyle/util/compatibility"; const appendCriteria = (element: HTMLElement, data: ISearchOption[]) => { fetchPost("/api/storage/getCriteria", {}, (response) => { @@ -155,7 +155,7 @@ export const genSearch = (config: ISearchOption, element: Element, closeCB?: ()
- + @@ -190,6 +190,13 @@ export const genSearch = (config: ISearchOption, element: Element, closeCB?: () +