-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gui(key modal): make the list of keys/signers scrollable #1426
base: master
Are you sure you want to change the base?
Conversation
hum, the issue is if we define a scrollable w/o height or with Length::Shrink, it will not be scrollable 🥲 One solution is to put a fixed height for the scrollable: diff --git a/gui/src/installer/view/editor/mod.rs b/gui/src/installer/view/editor/mod.rs
index 3b7bdf9..b3fe63a 100644
--- a/gui/src/installer/view/editor/mod.rs
+++ b/gui/src/installer/view/editor/mod.rs
@@ -327,7 +327,7 @@ pub fn edit_key_modal<'a>(
)
.padding(15)
;
- let scroll = scrollable(key_column).height(Length::Fill);
+ let scroll = scrollable(key_column).height(300);
Column::new()
.padding(25)
.push_maybe(error.map(|e| card::error("Failed to import xpub", e.to_string())))
(we can modify this fixed height dynamically, but we need to get the window height, and iirc, should add a subscription to catch the signal...) |
Perhaps you could you set the height to |
0c4b1b3
to
e599a53
Compare
done! |
e599a53
to
8f6c964
Compare
i reduced the number of key to > 1 for trigger the scrollable |
or i can put the |
The problem still occurs with this condition. It doesn't seem to occur with
I agree it's nicer to have the scrollable part only including the keys. |
@jp1ac4 wdyt about the last change? (i think it can be better if we auto scroll down when manual inserting an xpub & window minimised - a lot of conditions 😄 - , but it's maybe a bit tricky) |
Hmm, there's still this problem with having a lot of empty space when the window is large. Even though having only the keys scrollable is preferable, I would go with #1412 for now until we find a better way to manage the height. |
I agree with going with the simpler solution for now. I will move it to the following milestone in case we want to investigate more on this. |
this is a variant of #1412, it make only signer/key list scrollable instead the whole modal
fixes #1402