From 7ed4cbbeba76372e94c586f2bf762fc2e0292618 Mon Sep 17 00:00:00 2001 From: TerryM Date: Sat, 30 May 2026 22:17:58 +0800 Subject: [PATCH 1/2] fix: disable video controls text selection --- src/components/messageStream/MessageInlineVideo.tsx | 2 +- src/index.css | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/messageStream/MessageInlineVideo.tsx b/src/components/messageStream/MessageInlineVideo.tsx index 5418f2a..0a3809b 100644 --- a/src/components/messageStream/MessageInlineVideo.tsx +++ b/src/components/messageStream/MessageInlineVideo.tsx @@ -306,7 +306,7 @@ export function MessageInlineVideo({ ) : null}
e.stopPropagation()} >
setOpen(false)} > @@ -641,7 +645,7 @@ export function PublicLayout() { setOpen(false)} > @@ -649,7 +653,7 @@ export function PublicLayout() { setOpen(false)} > @@ -657,7 +661,7 @@ export function PublicLayout() { setOpen(false)} > @@ -665,7 +669,7 @@ export function PublicLayout() { setOpen(false)} > @@ -673,7 +677,7 @@ export function PublicLayout() { setOpen(false)} > diff --git a/src/pages/Categories/index.tsx b/src/pages/Categories/index.tsx index bd902b9..e5e7c28 100644 --- a/src/pages/Categories/index.tsx +++ b/src/pages/Categories/index.tsx @@ -2,6 +2,7 @@ import { useEffect, useState } from "react"; import { Link } from "react-router-dom"; import { getJSON, itemsOrEmpty, readJSONCache, type Category } from "../../api"; import { CategoryIcon } from "../../components/CategoryIcon"; +import { useSetPageTitle } from "../../components/PageTitleContext"; import { SectionHeader } from "../../components/SectionHeader"; import { Skeleton } from "../../components/Skeleton"; import { langQuery, useI18n } from "../../i18n"; @@ -32,6 +33,7 @@ function figmaCategoryRank(category: Category): number { export function CategoriesPage() { const { t, lang } = useI18n(); + useSetPageTitle(t("categories")); const [cats, setCats] = useState([]); const [err, setErr] = useState(null); diff --git a/src/pages/OfficialRecommendations/index.tsx b/src/pages/OfficialRecommendations/index.tsx index b52be7f..454b114 100644 --- a/src/pages/OfficialRecommendations/index.tsx +++ b/src/pages/OfficialRecommendations/index.tsx @@ -1,5 +1,6 @@ import { useEffect, useState } from "react"; import { getJSON, itemsOrEmpty, readJSONCache, type Category } from "../../api"; +import { useSetPageTitle } from "../../components/PageTitleContext"; import { RecommendedCard } from "../../components/RecommendedCard"; import { SectionHeader } from "../../components/SectionHeader"; import { langQuery, useI18n } from "../../i18n"; @@ -12,6 +13,7 @@ import { export function OfficialRecommendationsPage() { const { t, lang } = useI18n(); + useSetPageTitle(t("official")); const [items, setItems] = useState([]); const [err, setErr] = useState(null);