Skip to content

Commit

Permalink
assistant: Use a smaller icon for the "New Chat" button (#21425)
Browse files Browse the repository at this point in the history
Assistant new chat icon is slightly larger than editor pane new icon.

Changes:
Adds `IconSize::Small` to assistant default size new chat icon, not
really noticeable, but matches the new icon in editor pane, and the
assistant dropdown menu that have icon size small.

|old|new|
|---|---|

|![image](https://github.com/user-attachments/assets/cbef5054-a465-4957-9409-b4a73e703363)|![image](https://github.com/user-attachments/assets/baee66ea-76d6-43b4-a4b9-ead34991ff85)|

Release Notes:

- N/A
  • Loading branch information
5brian authored Dec 2, 2024
1 parent 59dc6cf commit 72afe68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/assistant/src/assistant_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ impl AssistantPanel {
.gap(DynamicSpacing::Base02.rems(cx))
.child(
IconButton::new("new-chat", IconName::Plus)
.icon_size(IconSize::Small)
.on_click(
cx.listener(|_, _, cx| {
cx.dispatch_action(NewContext.boxed_clone())
Expand Down

0 comments on commit 72afe68

Please sign in to comment.