Skip to content

Commit

Permalink
fix: link color style
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglun committed Jun 6, 2024
1 parent a5919d1 commit 67098f4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
5 changes: 2 additions & 3 deletions src/components/ArticleView/Detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ import { getChannelFavicon } from "@/helpers/parseXML";
import { useBearStore } from "@/stores";
import * as dataAgent from "@/helpers/dataAgent";
import { open } from "@tauri-apps/api/shell";
import xss, { getDefaultWhiteList } from "xss";
import DOMPurify from 'dompurify';
import { ArticleResItem } from "@/db";
import { YoutubeAdapter } from "./adpater/Youtube";
import { PodcastAdapter } from "./adpater/Podcast";
import { YoutubeAdapter } from "./adapter/Youtube";
import { PodcastAdapter } from "./adapter/Podcast";
import { Avatar, Heading, Separator } from "@radix-ui/themes";

function createMarkup(html: string) {
Expand Down
4 changes: 2 additions & 2 deletions src/layout/Article/ArticleCol.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ export const ArticleCol = React.memo(
{store.viewMeta ? store.viewMeta.title : ""}
</div>
<div className={"flex items-center justify-end px-2 space-x-1"}>
<Select.Root defaultValue={`${store.currentFilter.id}`} onValueChange={changeFilter} size="2">
<Select.Trigger variant="soft" className="hover:bg-[var(--accent-a3)]" />
<Select.Root defaultValue={`${store.currentFilter.id}`} onValueChange={changeFilter} size="1">
<Select.Trigger variant="surface" color="gray" className="hover:bg-[var(--accent-a3)]" />
<Select.Content>
{store.filterList.map((item) => {
return (
Expand Down
9 changes: 5 additions & 4 deletions src/styles/reading-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -200,17 +200,18 @@

& a {
text-decoration: underline;
text-decoration-style: dashed;
transition: all 0.3s;
color: var(--color-primary);
color: var(--accent-9);

&:hover {
text-decoration-style: wavy;
text-decoration: none;
background-color: var(--accent-9);
color: var(--accent-contrast) !important;
}
}

& img {
display: inline-block;
border: 1px solid var(--color-primary);
border: 1px solid var(--gray-7);
}
}

0 comments on commit 67098f4

Please sign in to comment.