fix(docs): fix tip text overflows when no result (#15295)

* fix(docs): fix tip text overflows when no result

* feat(docs): enable `getMissingResultsUrl` for docsearch
This commit is contained in:
Zhongxiang Wang 2023-12-28 10:40:35 +08:00 committed by GitHub
parent 2fd7ba82ab
commit 1c669e4eaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,6 +72,12 @@ function initialize(userOptions: any) {
),
}),
getMissingResultsUrl({ query }: { query: string }) {
return `https://github.com/element-plus/element-plus/issues/new?title=${encodeURIComponent(
`[Docs] Missing search result for \`${query}\``
)}`
},
navigator: {
navigate: ({ itemUrl }: { itemUrl: string }) => {
if (!isClient) return
@ -197,6 +203,10 @@ function initialize(userOptions: any) {
margin-right: 8px;
}
.DocSearch-Title {
word-break: break-word;
}
@media (max-width: 749px) {
&.DocSearch-Button {
margin: 0 12px;