Merge #1055: gui: make max tooltip more legible

617845234c4e64e02b47d4e29971b094f38f5281 gui: make max tooltip more legible (jp1ac4)

Pull request description:

  This resolves an issue found by @kloaec. I've changed the tooltip position to `Bottom` instead of `Left` and added some blank spaces so that text is padded at screen edge.

  ![image](https://github.com/wizardsardine/liana/assets/121959000/871c0ba9-90de-4c3a-b7db-937ce62035c6)

  Full screen:
  ![image](https://github.com/wizardsardine/liana/assets/121959000/1bd90278-fc5d-4586-b486-d96511b1bad6)

ACKs for top commit:
  darosior:
    utACK 617845234c4e64e02b47d4e29971b094f38f5281

Tree-SHA512: 2af36699671b34087695f01e31c848d6f1b7e59dc84bc83e527d27a3c08de5ead21e67b89d301590403ea88a6a28ae25bfa0917c288b3222ffbd95bb401982dc
This commit is contained in:
Antoine Poinsot 2024-04-01 10:28:53 +02:00
commit 7ef8d67abf
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -406,8 +406,9 @@ pub fn recipient_view<'a>(
checkbox("MAX", is_max_selected, move |_| {
CreateSpendMessage::SendMaxToRecipient(index)
}),
"Total amount remaining after paying fee and any other recipients",
tooltip::Position::Left,
// Add spaces at end so that text is padded at screen edge.
"Total amount remaining after paying fee and any other recipients ",
tooltip::Position::Bottom,
))
.width(Length::Fill),
),