mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-23 11:38:37 +00:00
autocomplete dark / light
This commit is contained in:
parent
fe80478b8a
commit
9694ecf55b
@ -8,9 +8,11 @@ const getInnerText = (html) => {
|
|||||||
return div.textContent || div.innerText || '';
|
return div.textContent || div.innerText || '';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// atomone, darcula, dracula, duotoneDark, eclipse, gruvboxLight autocompletes are flipped in darkness / lightness
|
||||||
|
|
||||||
export function Autocomplete({ doc }) {
|
export function Autocomplete({ doc }) {
|
||||||
return (
|
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>
|
<h3 className="pt-0 mt-0">{getDocLabel(doc)}</h3>
|
||||||
<div dangerouslySetInnerHTML={{ __html: doc.description }} />
|
<div dangerouslySetInnerHTML={{ __html: doc.description }} />
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user