mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 13:48:40 +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 || '';
|
||||
};
|
||||
|
||||
// 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…
x
Reference in New Issue
Block a user