Merge #1716: fix: use scrollbar for node settings

01ceb237f8446a31653bc294142a3a1397128373 fix: use scrollbar for node settings (Michael Mallan)

Pull request description:

  This fixes an issue when viewing a long node setting value, such as the cookie path, on a reduced window size.

  ![image](https://github.com/user-attachments/assets/8c9bef9c-cc37-46a4-b501-81d4a8e4eda7)

ACKs for top commit:
  edouardparis:
    utACK 01ceb237f8446a31653bc294142a3a1397128373

Tree-SHA512: f81b70df5c20d7339bdcd2e480dfbfb8e9381859ecc64338e32873dea11f8159b2d59c97d947bf2003aff38cebcabca50763f7d7a988a153b14c17d237f8e9a2
This commit is contained in:
edouardparis 2025-05-21 11:56:02 +02:00
commit dbe9a4ec1d
No known key found for this signature in database
GPG Key ID: E65F7A089C20DC8F

View File

@ -558,8 +558,24 @@ pub fn bitcoind<'a>(
v.clone()
};
Row::new()
.push(Container::new(text(k).bold().small()).width(Length::Fill))
.push(text(t).small())
.push(Container::new(text(k).bold().small()).width(Length::FillPortion(1)))
.push(
Container::new(
scrollable(
Column::new()
.push(Space::with_height(Length::Fixed(10.0)))
.push(text(t).small())
// Space between the text and the scrollbar
.push(Space::with_height(Length::Fixed(10.0))),
)
.direction(scrollable::Direction::Horizontal(
scrollable::Scrollbar::new().width(2).scroller_width(2),
)),
)
.align_x(alignment::Horizontal::Right)
.padding(10)
.width(Length::FillPortion(3)),
)
.push(Space::with_width(10))
.push(
Button::new(icon::clipboard_icon())