From 79a4a6cb48a6f7fc6a4768eb27342f512602cc8d Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 18 Dec 2024 22:12:26 +0200 Subject: [PATCH] web/mainscreen: remove outdated style --- web/src/ui/MainScreen.tsx | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/web/src/ui/MainScreen.tsx b/web/src/ui/MainScreen.tsx index 737c9d2..6b207b8 100644 --- a/web/src/ui/MainScreen.tsx +++ b/web/src/ui/MainScreen.tsx @@ -13,7 +13,7 @@ // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . -import { JSX, use, useEffect, useInsertionEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react" +import { JSX, use, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react" import { SyncLoader } from "react-spinners" import Client from "@/api/client.ts" import { RoomStateStore } from "@/api/statestore" @@ -259,19 +259,6 @@ const MainScreen = () => { } }, [context, client]) useEffect(() => context.keybindings.listen(), [context]) - useInsertionEffect(() => { - const styleTags = document.createElement("style") - styleTags.textContent = ` - div.html-body > a.hicli-matrix-uri-user[href="matrix:u/${client.userID.slice(1).replaceAll(`"`, `\\"`)}"] { - background-color: var(--highlight-pill-background-color); - color: var(--highlight-pill-text-color); - } - ` - document.head.appendChild(styleTags) - return () => { - document.head.removeChild(styleTags) - } - }, [client.userID]) const [roomListWidth, resizeHandle1] = useResizeHandle( 300, 48, Math.min(900, window.innerWidth * 0.4), "roomListWidth", { className: "room-list-resizer" },