From cd07141cde92628a57fbe174b8ccb3183f568a00 Mon Sep 17 00:00:00 2001 From: Hakan Seven Date: Mon, 12 Oct 2026 01:17:20 +0300 Subject: [PATCH] fix(fonts): keep missing font names clear of the list's scrollbar The missing-fonts list is as wide as its longest name, so its scrollbar was drawn over the end of every name ("ROMANT.sh"). Fixes #1715 Co-Authored-By: Claude Opus 5.5 --- src/ui/window/missing_fonts.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ui/window/missing_fonts.rs b/src/ui/window/missing_fonts.rs index 9eab4921f..9a1bad428 100644 --- a/src/ui/window/missing_fonts.rs +++ b/src/ui/window/missing_fonts.rs @@ -63,7 +63,15 @@ pub fn view_window<'a>( )) .size(11) .style(muted_style), - container(scrollable(column(listed).spacing(2)).height(content_height)) + // The right padding keeps the names clear of the scrollbar, which + // a list as wide as its longest name would otherwise draw over. + container( + scrollable(column(listed).spacing(2).padding(iced::Padding { + right: 14.0, + ..iced::Padding::ZERO + })) + .height(content_height), + ) .padding([10, 12]) .width(content_width) .height(content_height)