@bhsd/codemirror-mediawiki 3.10.1 → 3.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mediawiki.js CHANGED
@@ -154,7 +154,7 @@ export class FullMediaWiki extends MediaWiki {
154
154
  * @param equal 是否有等号
155
155
  */
156
156
  async #paramSuggest(search, page, equal) {
157
- const { config: { paramSuggest } } = this, result = await paramSuggest?.(page);
157
+ const { paramSuggest } = this.config, result = await paramSuggest?.(page);
158
158
  return result?.length
159
159
  ? {
160
160
  offset: leadingSpaces(search).length,
@@ -508,12 +508,14 @@ const theme = /* @__PURE__ */ EditorView.theme({
508
508
  backgroundColor: 'var(--cm-ref)',
509
509
  },
510
510
  // hover tooltip and signature tooltip
511
+ '.cm-tooltip-hover': {
512
+ maxHeight: '60vh',
513
+ overflow: 'hidden auto',
514
+ },
511
515
  [hoverSelector]: {
512
516
  padding: '2px 5px',
513
517
  width: 'max-content',
514
518
  maxWidth: '60vw',
515
- maxHeight: '60vh',
516
- overflowY: 'auto',
517
519
  },
518
520
  [`${hoverSelector} *`]: {
519
521
  marginTop: '0!important',