diff --git a/scss/sidebar.scss b/scss/sidebar.scss index 1730f822..40d370e5 100644 --- a/scss/sidebar.scss +++ b/scss/sidebar.scss @@ -849,6 +849,14 @@ & > :last-child { margin-top: lib.s(8); } + + .title { + @include font.title; + + font-size: lib.s(18); + font-weight: 500; + margin-bottom: lib.s(3); + } } button:hover .article-body, diff --git a/src/config/defaults.ts b/src/config/defaults.ts index cc52a5ec..9b4bf1cb 100644 --- a/src/config/defaults.ts +++ b/src/config/defaults.ts @@ -175,6 +175,7 @@ export default { categories: ["business", "top", "technology", "world"], // A list of news categories to filter by languages: ["en"], // A list of languages codes to filter by domains: [] as string[], // A list of news domains to pull from, see https://newsdata.io/news-sources for available domains + excludeDomains: ["news.google.com"], // A list of news domains to exclude, e.g. bbc.co.uk timezone: "", // A timezone to filter by, e.g. "America/New_York", see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones pages: 3, // Number of pages to pull (each page is 10 articles) }, diff --git a/src/config/types.ts b/src/config/types.ts index 66e0cfeb..6127e6f2 100644 --- a/src/config/types.ts +++ b/src/config/types.ts @@ -86,6 +86,7 @@ export default { "news.categories": ARR(NEWS_CATEGORIES), "news.languages": ARR(NEWS_LANGUAGES), "news.domains": ARR(STR), + "news.excludeDomains": ARR(STR), "news.timezone": STR, "news.pages": NUM, } as { [k: string]: string | string[] | number[] }; diff --git a/src/modules/sidebar/modules/headlines.tsx b/src/modules/sidebar/modules/headlines.tsx index 9515b289..462e2ee8 100644 --- a/src/modules/sidebar/modules/headlines.tsx +++ b/src/modules/sidebar/modules/headlines.tsx @@ -2,7 +2,6 @@ import type { Monitor } from "@/services/monitors"; import News, { type IArticle } from "@/services/news"; import Palette, { type IPalette } from "@/services/palette"; import { capitalize } from "@/utils/strings"; -import { setupCustomTooltip } from "@/utils/widgets"; import { bind, execAsync, Variable } from "astal"; import { Gtk } from "astal/gtk3"; import { sidebar } from "config"; @@ -56,7 +55,7 @@ const Article = ({ title, description, creator, pubDate, source_name, link }: IA