autocomplete dark / light
This commit is contained in:
parent
fe80478b8a
commit
9694ecf55b
1 changed files with 3 additions and 1 deletions
|
|
@ -8,9 +8,11 @@ const getInnerText = (html) => {
|
|||
return div.textContent || div.innerText || '';
|
||||
};
|
||||
|
||||
// atomone, darcula, dracula, duotoneDark, eclipse, gruvboxLight autocompletes are flipped in darkness / lightness
|
||||
|
||||
export function Autocomplete({ doc }) {
|
||||
return (
|
||||
<div className="prose prose-invert max-h-[400px] overflow-auto">
|
||||
<div className="prose dark:prose-invert max-h-[400px] overflow-auto">
|
||||
<h3 className="pt-0 mt-0">{getDocLabel(doc)}</h3>
|
||||
<div dangerouslySetInnerHTML={{ __html: doc.description }} />
|
||||
<ul>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue