From 17a322d85074131dbba59fca5d25ce6585bca9bd Mon Sep 17 00:00:00 2001 From: Simon Hong Date: Mon, 15 Jul 2024 16:12:33 +0900 Subject: [PATCH] Updated history page's item font style fix https://github.com/brave/brave-browser/issues/39722 --- .../history/brave_overrides/history_item.ts | 19 +++++++++++++++++++ .../history/brave_overrides/index.ts | 1 + browser/resources/history/sources.gni | 1 + 3 files changed, 21 insertions(+) create mode 100644 browser/resources/history/brave_overrides/history_item.ts diff --git a/browser/resources/history/brave_overrides/history_item.ts b/browser/resources/history/brave_overrides/history_item.ts new file mode 100644 index 000000000000..ecdfb86003eb --- /dev/null +++ b/browser/resources/history/brave_overrides/history_item.ts @@ -0,0 +1,19 @@ +// Copyright (c) 2024 The Brave Authors. All rights reserved. +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this file, +// You can obtain one at https://mozilla.org/MPL/2.0/. + +import {RegisterStyleOverride} from 'chrome://resources/brave/polymer_overriding.js' +import {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js' + +RegisterStyleOverride( + 'history-item', + html` + + ` +) diff --git a/browser/resources/history/brave_overrides/index.ts b/browser/resources/history/brave_overrides/index.ts index 8bcd2ae1a189..6275fa7ef3f7 100644 --- a/browser/resources/history/brave_overrides/index.ts +++ b/browser/resources/history/brave_overrides/index.ts @@ -4,4 +4,5 @@ // you can obtain one at https://mozilla.org/MPL/2.0/. import './app.js' +import './history_item.js' import './side_bar.js' diff --git a/browser/resources/history/sources.gni b/browser/resources/history/sources.gni index 6e0c0c8d9aa0..f2412868f9c6 100644 --- a/browser/resources/history/sources.gni +++ b/browser/resources/history/sources.gni @@ -7,6 +7,7 @@ brave_history_web_component_files = [ "brave_history_item.ts" ] brave_history_non_web_component_files = [ "brave_overrides/app.ts", + "brave_overrides/history_item.ts", "brave_overrides/side_bar.ts", "brave_overrides/index.ts", ]