fix(ui): Add text-black to prose elements

This commit is contained in:
hyper 2026-07-03 22:11:50 +08:00
parent 0add3f27d5
commit d56e8ca23d
3 changed files with 9 additions and 3 deletions

View File

@ -94,7 +94,10 @@ const App: Component = () => {
{/* fill th rest of the space*/}
<div class="fixed top-16 left-0 right-0 bottom-0 overflow-auto">
<main class="max-w-4xl mx-auto px-4 py-8 pt-4 md:ml-64 2xl:ml-auto flex justify-center items-center">
<Article class="prose-sm max-w-full flex-1" src={currentPath()} />
<Article
class="prose text-black prose-sm max-w-full flex-1"
src={currentPath()}
/>
</main>
</div>
<DocDialog isOpen={isDocOpen()} onClose={() => setIsDocOpen(false)} />

View File

@ -88,7 +88,10 @@ export const Article: Component<ArticleProps> = (props) => {
});
return (
<article class={`prose ${props.class || ""}`} data-src={props.src}>
<article
class={`prose text-black ${props.class || ""}`}
data-src={props.src}
>
<Show when={content.loading}>
<div class="text-gray-500">...</div>
</Show>

View File

@ -80,7 +80,7 @@ export function CardLayer(props: CardLayerProps) {
return (
<>
<article
class="absolute flex flex-col items-stretch justify-center prose prose-sm cursor-pointer"
class="absolute flex flex-col items-stretch justify-center prose text-black prose-sm cursor-pointer"
classList={{
"ring-2 ring-blue-500 ring-offset-1":
isSelected() && !draggingState(),