Code for debugging issue with no width available
This commit enables extremely verbose taffy logging and adds output of the layout ids for the Open Router settings container ID and the ID for the text input that has the issue. https://gist.github.com/mgsloan/28a2d8d9c9c803fc60898eae9db1ec8e is the subsets of the logs starting with the first line with the container ID and ending with the last line that has the container ID (see the end of the logs for these IDs) Repro for the issue: * Set ui_font_size to 20 in user settings.json * Open zed agent settings * Expand Open Router settings * Resize panel until the API key input field becomes small
This commit is contained in:
parent
8366b6ce54
commit
297fd858e8
4 changed files with 38 additions and 3 deletions
|
@ -853,6 +853,7 @@ impl Render for ConfigurationView {
|
|||
div().child(Label::new("Loading credentials...")).into_any()
|
||||
} else if self.should_render_editor(cx) {
|
||||
v_flex()
|
||||
.id("open-router-container")
|
||||
.size_full()
|
||||
.on_action(cx.listener(Self::save_api_key))
|
||||
.child(Label::new("To use Zed's agent with OpenRouter, you need to add an API key. Follow these steps:"))
|
||||
|
@ -872,6 +873,7 @@ impl Render for ConfigurationView {
|
|||
)
|
||||
.child(
|
||||
h_flex()
|
||||
.id("api-key-editor")
|
||||
.w_full()
|
||||
.my_2()
|
||||
.px_2()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue