chromium-browser-stable-test/0005-Adjust-sizes-in-new-tab-page-for-Russian-text.patch
Mikhail Novosyolov ab18bc03ad rediff patches
2023-10-16 23:43:39 +03:00

41 lines
1.4 KiB
Diff

From c405548ffda62b82b78feba3c6e3ba1af785d1ca Mon Sep 17 00:00:00 2001
From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
Date: Mon, 6 Jun 2022 11:54:20 +0300
Subject: [PATCH 5/5] Adjust sizes in new tab page for Russian text
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Avoid cutting "Добавить ярлык" ("Add shortcut") to "Добавить яр...".
Keep enough distance between items after adjusting that size.
Note: it is a hack. Text size depends on font and size.
---
.../resources/cr_components/most_visited/most_visited.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ui/webui/resources/cr_components/most_visited/most_visited.html b/ui/webui/resources/cr_components/most_visited/most_visited.html
index 95ae4f95af268..7ee7ffee15730 100644
--- a/ui/webui/resources/cr_components/most_visited/most_visited.html
+++ b/ui/webui/resources/cr_components/most_visited/most_visited.html
@@ -5,7 +5,7 @@
--icon-size: 48px;
--tile-background-color: rgb(229, 231, 232);
--tile-hover-color: rgba(var(--google-grey-900-rgb), .1);
- --tile-size: 112px;
+ --tile-size: 120px;
--title-height: 32px;
}
@@ -171,7 +171,7 @@
line-height: calc(var(--title-height) / 2);
margin-top: 6px;
padding: 2px 8px;
- width: 88px;
+ width: 110px;
}
.tile-title span {
--
2.40.1