mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 03:08:21 +08:00
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:
parent
2fd7ba82ab
commit
1c669e4eaf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user