fix(ui): keep friends Remove/Add buttons clear of the scrollbar edge

The fill-portion inputs pushed the trailing Remove and Add buttons under the
scrollbar gutter, clipping them. Reserve 12px right clearance on both rows.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-15 05:04:06 -04:00
co-authored by Claude Opus 4.8
parent e3f9cd5be7
commit 70d7a90a4d
+4
View File
@@ -1641,6 +1641,9 @@ fn view(state: &AppState) -> Element<'_, AppMessage> {
.on_press(AppMessage::RemoveFriend(fid))
.style(b_style(color_surface, color_maroon, color_text, 6.0))
.padding(6),
// Reserve clearance so the button doesn't sit under the
// scrollbar gutter at the right edge.
horizontal_space().width(iced::Length::Fixed(12.0)),
]
.spacing(8)
.align_y(iced::alignment::Vertical::Center),
@@ -1672,6 +1675,7 @@ fn view(state: &AppState) -> Element<'_, AppMessage> {
.on_press(AppMessage::AddFriend)
.style(b_style(color_surface, color_blue, color_text, 6.0))
.padding(8),
horizontal_space().width(iced::Length::Fixed(12.0)),
]
.spacing(8)
.align_y(iced::alignment::Vertical::Center),