zed/crates
Marshall Bowers 3541dd8a6d
Tweak message role indicator in the assistant panel (#3938)
This PR tweaks the message role indicator in the assistant panel.

Previously we added a negative margin in #3925 to align the indicator
with the text, but the result of this was the left side of the button
getting clipped on hover.

To remedy this, we now use the filled button style so that the
background always shows and maintains the visual alignment.

### Before

<img width="451" alt="Screenshot 2024-01-08 at 10 50 21 AM"
src="https://github.com/zed-industries/zed/assets/1486634/dd3ae3dc-13c5-4d81-abd7-8023aca496c8">

### After

<img width="401" alt="Screenshot 2024-01-08 at 10 54 42 AM"
src="https://github.com/zed-industries/zed/assets/1486634/c089a879-1c88-4d94-9532-4e9433a35828">

We could also do what we did in Zed1, where the hover style doesn't have
any padding and is flush with the left side of the text, but I don't
think this looks as polished.

The "Assistant" role now also uses a separate color from "System".

Release Notes:

- Updated the style of the message role indicator in the assistant
panel.
2024-01-08 11:06:02 -05:00
..
activity_indicator Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
ai gpui: Further docs refinement & moved some reexports into 'private' module (#3935) 2024-01-07 14:14:21 +01:00
assistant Use filled button style for role indicator in assistant panel 2024-01-08 10:52:12 -05:00
audio Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
auto_update Fix version comparison in auto update 2024-01-04 09:53:57 -08:00
breadcrumbs Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
call Clean up code 2024-01-06 15:31:16 -05:00
channel Fix tests 2024-01-06 16:10:40 -05:00
cli Code to allow opening zed:/channel/1234 2023-10-05 14:57:45 -07:00
client gpui: Further docs refinement & moved some reexports into 'private' module (#3935) 2024-01-07 14:14:21 +01:00
clock Remove local timestamps from CRDT operations 2023-08-31 16:23:06 -07:00
collab Tidy up context usage 2024-01-05 16:35:20 -07:00
collab_ui gpui: Further docs refinement & moved some reexports into 'private' module (#3935) 2024-01-07 14:14:21 +01:00
collections Use FxHashMap and FxHashSet in hot code paths 2023-12-12 13:35:22 +01:00
command_palette Fix some bugs in keymap handling (#3895) 2024-01-04 16:04:17 -05:00
copilot Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
copilot_button Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
db Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
diagnostics Merge branch 'main' into channel-guests 2024-01-05 10:05:59 -07:00
editor gpui: Further docs refinement & moved some reexports into 'private' module (#3935) 2024-01-07 14:14:21 +01:00
feature_flags Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
feedback gpui: Further docs refinement & moved some reexports into 'private' module (#3935) 2024-01-07 14:14:21 +01:00
file_finder Properly detect file finder label positions in paths 2024-01-06 23:50:59 +02:00
fs Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
fsevent
fuzzy Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
git Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00
go_to_line Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
gpui Bring back zed.rs tests (#3907) 2024-01-08 12:29:54 +01:00
gpui_macros gpui: Further docs refinement & moved some reexports into 'private' module (#3935) 2024-01-07 14:14:21 +01:00
install_cli Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
journal On external file drop, add visible project entries for directories only 2024-01-07 03:11:28 +02:00
language Merge branch 'main' into channel-guests 2024-01-05 10:05:59 -07:00
language_selector Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
language_tools gpui: Further docs refinement & moved some reexports into 'private' module (#3935) 2024-01-07 14:14:21 +01:00
live_kit_client Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
live_kit_server Prevent guests from screen-sharing, unmuting or screen sharing 2024-01-03 19:31:43 -07:00
lsp Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
media Start fixing up gpui2 2024-01-02 00:04:51 +01:00
menu Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
multi_buffer Track read_only per project and buffer 2024-01-03 19:31:43 -07:00
node_runtime Upgrade async-compression dep 2023-12-06 14:29:09 -08:00
notifications Rename notification_store 2024-01-03 20:02:23 -05:00
outline Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
picker Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
plugin
plugin_macros
plugin_runtime Bump Rust to 1.75 (#3815) 2023-12-28 19:22:43 +01:00
prettier Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
project Merge branch 'main' into channel-guests 2024-01-05 10:05:59 -07:00
project_panel Merge branch 'main' into channel-guests 2024-01-05 10:05:59 -07:00
project_symbols gpui: Further docs refinement & moved some reexports into 'private' module (#3935) 2024-01-07 14:14:21 +01:00
quick_action_bar Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
recent_projects Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
refineable Another batch of fixups 2024-01-02 00:24:11 +01:00
rich_text Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
rope Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
rpc Tidy up branch 2024-01-04 11:55:14 -07:00
search Tidy up TestContext lifecycle 2024-01-05 16:31:41 -07:00
semantic_index Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
settings gpui: Remove dependency on sqlez (#3871) 2024-01-05 19:36:55 +01:00
snippet
sqlez sqlez 2024-01-01 23:56:04 +01:00
sqlez_macros
story Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
storybook Remove 2 suffix from gpui_macros, fix compile errors in tests 2024-01-03 13:12:21 -08:00
sum_tree chore: fix clippy lints for rope2, sum_tree, text2 and util 2024-01-01 23:50:14 +01:00
terminal Always show full command on terminal tab hover 2024-01-07 13:46:44 +02:00
terminal_view gpui: Further docs refinement & moved some reexports into 'private' module (#3935) 2024-01-07 14:14:21 +01:00
text Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
theme Decouple theme license generation from TypeScript theme definitions (#3917) 2024-01-05 13:38:12 -05:00
theme_importer gpui: Further docs refinement & moved some reexports into 'private' module (#3935) 2024-01-07 14:14:21 +01:00
theme_selector WIP 2024-01-06 14:41:35 -05:00
ui Iterate on design of channel management modal (#3923) 2024-01-05 16:22:43 -05:00
util Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
vcs_menu Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
vim Tidy up TestContext lifecycle 2024-01-05 16:31:41 -07:00
welcome Improve setting name consistency for welcome page 2024-01-06 23:34:46 -05:00
workspace Restore ability to reset pane split size by double clicking drag handle. (#3937) 2024-01-08 16:48:17 +01:00
zed Bring back zed.rs tests (#3907) 2024-01-08 12:29:54 +01:00
zed_actions Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00